Google Oauth Login Python: "invalid Parameter Value For Redirect_uri: Missing Scheme: None"
This is my code: flow = OAuth2WebServerFlow(client_id='XXXXXX',client_secret='XXXXXXXXX',scope='https://www.googleapis.com/auth/userinfo.email',redirect_uri='https://XXXXXXXX.com/
Solution 1:
This is because you are missing the redirect URI
In my example
REDIRECT_URI = 'http://localhost:8000/app'OAUTH2_SCOPE = 'https://www.googleapis.com/auth/drive.readonly'flow = flow_from_clientsecrets(CLIENTSECRET_LOCATION, OAUTH2_SCOPE)
flow.redirect_uri = REDIRECT_URI
credentials = flow.step2_exchange(authorization_code)
Post a Comment for "Google Oauth Login Python: "invalid Parameter Value For Redirect_uri: Missing Scheme: None""