Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Oauth Token generation #776

Open
MontiMarco92 opened this issue Jun 13, 2024 · 0 comments
Open

Multiple Oauth Token generation #776

MontiMarco92 opened this issue Jun 13, 2024 · 0 comments
Labels
bug Something isn't working triage A new issue that needs triage

Comments

@MontiMarco92
Copy link
Contributor

MontiMarco92 commented Jun 13, 2024

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

@MontiMarco92 MontiMarco92 added bug Something isn't working triage A new issue that needs triage labels Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage A new issue that needs triage
Projects
None yet
Development

No branches or pull requests

1 participant