-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
oauth2 webhook: granted_scopes
always empty
#3620
Comments
I'm having the same issue in v2.1.1. Running the project locally, I can see that the hook is executed before the requester is granted any scopes ( Lines 1005 to 1020 in 89b1b1b
Thing is, during the @aeneasr Do you see any problems in running the hook after the internal logic is executed (i.e after the |
@aeneasr any thoughts on that? |
Unfortunately there's still no feedback from the core team. I brought that topic up on slack twice but it did not lead anywhere (@hperl @aeneasr @kmherrmann). For the time being, I have worked around that problem by only doing stuff in the token-hook that does not depend on the |
Same here! After accepting the consent request with the given Parameters (grantScopes included) the request details remains empty:
The redirect URI looks as follows:
Calling the URL will provide this:
As you can see, the "granted_scopes" are empty. |
I've spent some time on investigation and here are my notes:
We were using |
Any feedback from the core team @aeneasr on this? |
We encountered the same issue, and I’ve created a PR implementing your suggestion to add |
Preflight checklist
Ory Network Project
No response
Describe the bug
The documentation outlines that the webhok should receive request-details.
The request has a field called
granted_scopes
, but it's always an empty list instead of the granted scopes by the consent application.Previous slack discussions around this topic:
Reproducing the bug
Clone hydra
Run server
enable the token_hook in contrib/quickstart/5-min/hydra.yml
have this token_hook log the request
Create client and run auth code flow
Note: accept at least 1 of the scopes
Check
In the request that the token_hook receives. The
request.grant_types
remains empty.Relevant log output
No response
Relevant configuration
Version
oryd/hydra:v2.2.0-rc.3
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
The text was updated successfully, but these errors were encountered: