-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pass user id from old refresh token to finalizeScopes() #1414
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
Conversation
hafezdivandari
left a comment
There was a problem hiding this 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
|
@pl-github please merge |
Co-authored-by: Hafez Divandari <[email protected]>
f2a832e to
246782c
Compare
|
@hafezdivandari I have rebased my branch. What do you mean by "remove redundant code"? |
|
@hafezdivandari Done 👍 |
|
Thank you @pl-github and apologies for the delay getting this looked at. It will be included in the next release. |
We need the user ID in our
finalizeScopes()implementation to adjust the selection of scopes. As of version 9.0, thefinalizeScopes()method is also called for theRefreshTokenGrant, but the user ID is not currently passed to thefinalizeScopes()method. Since the user ID is in the old refresh token, it can be passed from there.