diff options
author | Tomas Reimers <tomasreimers@gmail.com> | 2017-06-01 15:28:58 -0400 |
---|---|---|
committer | Jon Wayne Parrott <jonwayne@google.com> | 2017-06-01 12:28:58 -0700 |
commit | a1da72d15c653c7bd5221211c9a2e7ce2e6341a5 (patch) | |
tree | 03e146e9dbeea2f98eda457130984c9bdd96dc52 | |
parent | 00926f2058e23da7f6772ad6477e64d7506415e5 (diff) | |
download | oauth2client-a1da72d15c653c7bd5221211c9a2e7ce2e6341a5.tar.gz |
Pass prompt='consent' from flow_from_clientsecrets (#717)
-rw-r--r-- | oauth2client/client.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/oauth2client/client.py b/oauth2client/client.py index 27d62eb..7618960 100644 --- a/oauth2client/client.py +++ b/oauth2client/client.py @@ -2092,7 +2092,8 @@ class OAuth2WebServerFlow(Flow): @_helpers.positional(2) def flow_from_clientsecrets(filename, scope, redirect_uri=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. 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, } 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: if locals()[param] is not None: constructor_kwargs[param] = locals()[param] |