remove access_type=offline to shorten auth URLs as it's default already

This commit is contained in:
Jay Lee
2017-01-25 11:22:25 -05:00
parent ae578c64a0
commit c7946c0edf
2 changed files with 2 additions and 2 deletions

View File

@@ -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])

View File

@@ -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',
}