Skip to content

Multiple Oauth Token generation #776

Open
@MontiMarco92

Description

@MontiMarco92

Package containing the bug

I’m not sure

Describe the bug

I am testing the 2.0 beta version with Nextjs App router and I'm using CliendId and ClientSecret authentication with Drupal.
I've noticed that multiple tokens are generated on drupal (I think is also happening on the 1.6 version from what I recall, but I'm not sure). I'm not sure if this is the expected behaviour but I would expect to have one token generated since the client (FE) is only one. What do you think ?

image

Expected behavior

Maybe to have only one oAuth token generated on Drupal.

Steps to reproduce:

  1. First, go to 'admin/config/people/simple_oauth/oauth2_token' and remove all available tokens.
  2. Then start your development build of NexJs app. Try to access a page, so requests to the BE are made
  3. 😢 You should see multiple tokens generated on Drupal

Additional context

  • I'm using ClientId + ClientSecret auth.
  • next-drupal npm package 2.0 beta version
  • Nextjs App router v 14.2.3

Related issues (might be related):

#636

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageA new issue that needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions