mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
oauth2client 4.1.2
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
"""Client library for using OAuth2, especially with Google APIs."""
|
"""Client library for using OAuth2, especially with Google APIs."""
|
||||||
|
|
||||||
__version__ = '4.1.0'
|
__version__ = '4.1.2'
|
||||||
|
|
||||||
GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/v2/auth'
|
GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/v2/auth'
|
||||||
GOOGLE_DEVICE_URI = 'https://accounts.google.com/o/oauth2/device/code'
|
GOOGLE_DEVICE_URI = 'https://accounts.google.com/o/oauth2/device/code'
|
||||||
|
|||||||
@@ -2092,7 +2092,8 @@ class OAuth2WebServerFlow(Flow):
|
|||||||
@_helpers.positional(2)
|
@_helpers.positional(2)
|
||||||
def flow_from_clientsecrets(filename, scope, redirect_uri=None,
|
def flow_from_clientsecrets(filename, scope, redirect_uri=None,
|
||||||
message=None, cache=None, login_hint=None,
|
message=None, cache=None, login_hint=None,
|
||||||
device_uri=None, pkce=None, code_verifier=None):
|
device_uri=None, pkce=None, code_verifier=None,
|
||||||
|
prompt=None):
|
||||||
"""Create a Flow from a clientsecrets file.
|
"""Create a Flow from a clientsecrets file.
|
||||||
|
|
||||||
Will create the right kind of Flow based on the contents of the
|
Will create the right kind of Flow based on the contents of the
|
||||||
@@ -2141,7 +2142,13 @@ def flow_from_clientsecrets(filename, scope, redirect_uri=None,
|
|||||||
'login_hint': login_hint,
|
'login_hint': login_hint,
|
||||||
}
|
}
|
||||||
revoke_uri = client_info.get('revoke_uri')
|
revoke_uri = client_info.get('revoke_uri')
|
||||||
optional = ('revoke_uri', 'device_uri', 'pkce', 'code_verifier')
|
optional = (
|
||||||
|
'revoke_uri',
|
||||||
|
'device_uri',
|
||||||
|
'pkce',
|
||||||
|
'code_verifier',
|
||||||
|
'prompt'
|
||||||
|
)
|
||||||
for param in optional:
|
for param in optional:
|
||||||
if locals()[param] is not None:
|
if locals()[param] is not None:
|
||||||
constructor_kwargs[param] = locals()[param]
|
constructor_kwargs[param] = locals()[param]
|
||||||
|
|||||||
Reference in New Issue
Block a user