Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add SAML challenge to reauth #819

Merged
merged 13 commits into from
Sep 7, 2021
Merged

fix: add SAML challenge to reauth #819

merged 13 commits into from
Sep 7, 2021

Conversation

arithmetic1728
Copy link
Contributor

@arithmetic1728 arithmetic1728 commented Jul 29, 2021

This PR:

(1) re-add SAML challenge to reauth. It throws exception to fail early, and the exception is used by gcloud to instruct the users to do gcloud auth login. Without it, SAML users have to enter password 5 times then fail.

(2) when creating user credential, read rapt_token field from the json file if exists.

(3) disable reauth flow for user credentials and add a new enable_reauth_refresh flag to user credentials constructor.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 29, 2021
@arithmetic1728 arithmetic1728 marked this pull request as ready for review July 29, 2021 19:27
@arithmetic1728 arithmetic1728 requested review from silvolu and a team as code owners July 29, 2021 19:27
google/oauth2/credentials.py Outdated Show resolved Hide resolved
google/oauth2/reauth.py Outdated Show resolved Hide resolved
google/oauth2/_reauth_async.py Outdated Show resolved Hide resolved
google/oauth2/challenges.py Show resolved Hide resolved
google/oauth2/reauth.py Outdated Show resolved Hide resolved
google/oauth2/reauth.py Outdated Show resolved Hide resolved
google/oauth2/reauth.py Outdated Show resolved Hide resolved
google/oauth2/challenges.py Outdated Show resolved Hide resolved
@arithmetic1728 arithmetic1728 merged commit 13aed5f into main Sep 7, 2021
@arithmetic1728 arithmetic1728 deleted the reauth branch September 7, 2021 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants