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

added AccountChooser in ssoPage url test #102

Merged
merged 1 commit into from
Aug 1, 2023
Merged

added AccountChooser in ssoPage url test #102

merged 1 commit into from
Aug 1, 2023

Conversation

roeezab
Copy link
Contributor

@roeezab roeezab commented Aug 1, 2023

When the google session times out (or being signed out manually from the accounts settings), google give the "choose an account" page before signing in again:

image

This causes gsts to get stuck on "Logging in" phase, and it needs to be run with --clean argument in order to sign in again, which flaws the interactive way gsts works. I've fixed it by adding AccountChooser to the ssoPage url test, which then identifies this page, and spawns the browser for sign in again.

( The url of the "choose an account" page is something like that:
https://accounts.google.com/AccountChooser/signinchooser?continue=https%3A%2F%2Faccounts.google.com%2Fo%2Fsaml2%2Finitsso%3Fidpid%XXXXXX%26spid%XXXXXX%26forceauthn%3Dtrue%26from_login%3DXXXXXX&ltmpl=popup&btmpl=authsub&scc=1&oauth=1&flowName=GlifWebSignIn&flowEntry=AccountChooser )

@ruimarinho
Copy link
Owner

Thanks! An important fix for sure.

@ruimarinho ruimarinho merged commit 0519833 into ruimarinho:master Aug 1, 2023
3 checks passed
jontg added a commit to jontg/gsts that referenced this pull request Aug 23, 2023
jontg added a commit to jontg/gsts that referenced this pull request Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants