From c7946c0edff6c7d9ae6da946d6359e1512fb78a2 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 25 Jan 2017 11:22:25 -0500 Subject: [PATCH] remove access_type=offline to shorten auth URLs as it's default already --- src/gam.py | 2 +- src/oauth2client/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gam.py b/src/gam.py index 2637ac93..9670571e 100755 --- a/src/gam.py +++ b/src/gam.py @@ -9485,7 +9485,7 @@ gam create project break flow = oauth2client.client.OAuth2WebServerFlow(client_id=client_id, client_secret=client_secret, scope=scopes, redirect_uri=oauth2client.client.OOB_CALLBACK_URN, - user_agent=GAM_INFO, access_type=u'offline', response_type=u'code', login_hint=login_hint) + user_agent=GAM_INFO, response_type=u'code', login_hint=login_hint) storage, credentials = getOauth2TxtStorageCredentials() if credentials is None or credentials.invalid: http = httplib2.Http(disable_ssl_certificate_validation=GC_Values[GC_NO_VERIFY_SSL]) diff --git a/src/oauth2client/client.py b/src/oauth2client/client.py index 209093dc..fbcd70c3 100644 --- a/src/oauth2client/client.py +++ b/src/oauth2client/client.py @@ -1771,7 +1771,7 @@ class DeviceFlowInfo(collections.namedtuple('DeviceFlowInfo', ( def _oauth2_web_server_flow_params(kwargs): """Configures redirect URI parameters for OAuth2WebServerFlow.""" params = { - 'access_type': 'offline', +# 'access_type': 'offline', 'response_type': 'code', }