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

Pass user id from old refresh token to finalizeScopes() #1414

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pl-github
Copy link

We need the user ID in our finalizeScopes() implementation to adjust the selection of scopes. As of version 9.0, the finalizeScopes() method is also called for the RefreshTokenGrant, but the user ID is not currently passed to the finalizeScopes() method. Since the user ID is in the old refresh token, it can be passed from there.

Copy link
Contributor

@hafezdivandari hafezdivandari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reflect changes from PR #1436

@hafezdivandari
Copy link
Contributor

@pl-github please merge master branch and remove redundant code.

pl-github and others added 2 commits February 14, 2025 17:23
Co-authored-by: Hafez Divandari <hafezdivandari@gmail.com>
@pl-github pl-github force-pushed the pass-user-id-to-finalize-scopes branch from f2a832e to 246782c Compare February 14, 2025 16:24
@pl-github
Copy link
Author

@hafezdivandari I have rebased my branch.

What do you mean by "remove redundant code"?

@hafezdivandari
Copy link
Contributor

@pl-github this few lines moved up:

https://github.com/thephpleague/oauth2-server/pull/1414/files#diff-f985b69380156eff8040ab4d4bc953756e5e3d64328298126aa195c03121b5c5R86-R89

@pl-github
Copy link
Author

@hafezdivandari Done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants