-
Notifications
You must be signed in to change notification settings - Fork 368
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
[Authorization Code Flow Steps] Seem to not includes id_token when getting the token #457
Comments
Yes, So you should do a loop like:
See also: https://github.com/ory/fosite-example/blob/master/authorizationserver/oauth2_auth.go#L49-L51 |
Hey @mitar, Nice! Thanks, and thanks for the tip using It's out of the scope, I'll close this issue after, how can I get more info about the error I get? Granting the scope |
For that you will have to provide full reproduction. |
Also, for posterity, see this comment as well. |
Hello @mitar, Thanks for your help. I dove a bit in the code to first have more information from errors, for reference in case people try to parse fosite errors, just do My issue here is that I was using a wrong session for I feel like the README has to be updated accordingly, in the example it is not mentionning the To get the good session for session := openid.NewDefaultSession()
session.Claims.Subject = username Didn't test everything yet, but I got through the authorize process. |
Nope, I was mistakenly refering to a comment line saying |
I would leave this issue open because yes, that example in README does not work as OpenID Connect provider because it lacks this granting of scopes. |
Hello guys,
Not sure if the following is a bug.
Describe the bug
The flow "Authorization Code Flow" with
openid
scope andcode
asresponse_type
does not return theid_token
data when fetching the token after getting the code.https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth
To Reproduce
Auth endpoint
/oauth/auth
Example URL `http://localhost:1111/oauth/auth?response_type=code&scope=openid%20email%20profile%20address&client_id=some_id&state=eefaa99407ba2b36f661cf35c656b7cb&redirect_uri=http://avalidurl&username=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Token Endpoint
/oauth/token
Expected behavior
response_type=code
andscope=openid
should returns aid_token
when getting the token, after a successful auth flow.Environment
Additional context
I hope I gave enough info, I can provide more.
Any idea what's wrong here? I'm very suspicious about
GrantScope
, is required to call it afterNewAuthorizeRequest
?The text was updated successfully, but these errors were encountered: