Google Oauth 2.0 not giving back authorization code -


i'm trying follow this: https://developers.google.com/api-client-library/python/guide/aaa_oauth

using python client. want authorization code can exchange refresh token.

however, when make flow = oauth2webserverflow(...) , call flow.step1_get_authorize_url() , automatically access token instead of authorization code upon signing in, want. i'm requesting contacts scope , passing following parameters:

access_type='offline', approval_prompt='force', include_granted_scopes='true' 

i've searched online while on how fix problems, , of them suggest adding approval_prompt='force', have.

any appreciated. thanks!


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

android - How to prevent keyboard from closing when bottom dialog is open? -