Open bdesbiolles opened 6 years ago
I had the same issue, just change
# Fetch the access token
google.fetch_token(token_url, client_secret=client_secret,
authorization_response=redirect_response)
# Fetch the access token
google.fetch_token(token_url, client_secret=client_secret,
code=redirect_response)
although add this:
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
and here just pass the code, like: 4/AgGw7I2EJZ43uGI7wvVY1Oc0Pv2s9DsD.......qdT0CY
, not the url
.
redirect_response = input('Paste the full redirect URL here:\n')
Hello,
I followed the Google Oauth2 example and I managed to get the authorization code but fetching the token I have the following error:
It seems that for Google the parameter is named approvalCode.