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
Post a Comment