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
Is it possible to make an access token request without first making an authorization request? In my application flow the initial authorization request is performed by an application running in the web browser, and the grant code is then passed to the backend where a Python application requests the access token. For example:
In the above code auth_request is an object sent to the application from the web browser containing the details extracted from the redirect URL. However, I receive the following error:
oic.oauth2.exception.GrantError: No grant found for state:''
The text was updated successfully, but these errors were encountered:
The Client class keeps some state about the authorization in a dictionary indexed by the "state" parameter of the authorization flow, thats why you see the above error. Your client has nothing stored for the state value "".
So you would need to provide the Client with the necessary information.
If the Client runs the flow itself, this is done in the parse_response() method. So if you can construct an AuthorizationResponse object from your data and then parse it, the client would be setup for fetching the access token.
Is it possible to make an access token request without first making an authorization request? In my application flow the initial authorization request is performed by an application running in the web browser, and the grant code is then passed to the backend where a Python application requests the access token. For example:
In the above code
auth_request
is an object sent to the application from the web browser containing the details extracted from the redirect URL. However, I receive the following error:The text was updated successfully, but these errors were encountered: