You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When requesting an id_token with the authorization code flow, the TOKEN endpoint returns a state, but state is only a response's parameter for the AUTHORIZE endpoint.
How to reproduce
Implement OIDC support in oauthlib for authorization_code.
Send a valid /authorize request with a state
Send a valid /token request, and see state=None in the response.
Expected behavior
We should have the state only in the /authorize response (e.g. for code or implicit's response).
Additional context
Are you using OAuth1, OAuth2 or OIDC?
OIDC
Are you writing client or server side code?
Server side
The text was updated successfully, but these errors were encountered:
The same bug exists for OAuth2 but is slightly different. The response of grant_type=authorization_code&state=foobar contains state=foobar. However, we don't have the field if the request doesn't contain it, it's why nobody already noticed it.
It is like this because the same code is run for implicit and for authorization_code. This should be fixed.
Describe the bug
When requesting an id_token with the authorization code flow, the TOKEN endpoint returns a
state
, butstate
is only a response's parameter for the AUTHORIZE endpoint.How to reproduce
authorization_code
./authorize
request with a state/token
request, and seestate=None
in the response.Expected behavior
We should have the state only in the
/authorize
response (e.g. for code or implicit's response).Additional context
Are you using OAuth1, OAuth2 or OIDC?
OIDC
Are you writing client or server side code?
Server side
The text was updated successfully, but these errors were encountered: