mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-06 05:41:36 +00:00
remove access_type=offline to shorten auth URLs as it's default already
This commit is contained in:
@@ -9485,7 +9485,7 @@ gam create project
|
|||||||
break
|
break
|
||||||
flow = oauth2client.client.OAuth2WebServerFlow(client_id=client_id,
|
flow = oauth2client.client.OAuth2WebServerFlow(client_id=client_id,
|
||||||
client_secret=client_secret, scope=scopes, redirect_uri=oauth2client.client.OOB_CALLBACK_URN,
|
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()
|
storage, credentials = getOauth2TxtStorageCredentials()
|
||||||
if credentials is None or credentials.invalid:
|
if credentials is None or credentials.invalid:
|
||||||
http = httplib2.Http(disable_ssl_certificate_validation=GC_Values[GC_NO_VERIFY_SSL])
|
http = httplib2.Http(disable_ssl_certificate_validation=GC_Values[GC_NO_VERIFY_SSL])
|
||||||
|
|||||||
@@ -1771,7 +1771,7 @@ class DeviceFlowInfo(collections.namedtuple('DeviceFlowInfo', (
|
|||||||
def _oauth2_web_server_flow_params(kwargs):
|
def _oauth2_web_server_flow_params(kwargs):
|
||||||
"""Configures redirect URI parameters for OAuth2WebServerFlow."""
|
"""Configures redirect URI parameters for OAuth2WebServerFlow."""
|
||||||
params = {
|
params = {
|
||||||
'access_type': 'offline',
|
# 'access_type': 'offline',
|
||||||
'response_type': 'code',
|
'response_type': 'code',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user