I have spun up the example-oauth-server and am trying to exercise the implicit flow - I have followed the directions in the documentation and have done the following
step 1 - registered the client; made sure that there was no requirement for client secret. step 2 - opened a REPL and did the following
>>> from authlib.client import OAuth2Session
>>> client_id = 'MY CLIENT ID'
>>> scope = 'profile' # we want to fetch user's email
>>> session = OAuth2Session(client_id, scope=scope)
>>> authorize_url = 'http://localhost:5000/oauth/authorize'
>>> uri, state = session.authorization_url(authorize_url,response_type='token')
Next step is to get an authorization response. I dont seem to be able to get that. print(uri) does not give me the access token in the URL response because it is not the authorization response.
i know i need to call session.fetch_access_token(authorization_response);
my confusion is what do I pass to fetch_access_token when I didnt get the authorization_response.
I know I am missing something minor... any advice.