ruimarinho / gsts

Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML.
MIT License
221 stars 38 forks source link

gsts hangs, browser does not show up #97

Closed p-hash closed 1 year ago

p-hash commented 1 year ago
$ gsts --username ... --aws-role-arn ... --sp-id ... --idp-id ... --json --aws-shared-credentials-file ... -v
ℹ Attempting to retrieve session expiration credentials
ℹ Credentials file does not exist at ...
ℹ Playwright: api => browserContext.newPage started []
ℹ Playwright: api <= browserContext.newPage succeeded []
ℹ Playwright: api => page.route started []
ℹ Playwright: api <= page.route succeeded []
ℹ Playwright: api => page.on started []
ℹ Playwright: api => page.goto started []
ℹ Playwright: api <= page.on succeeded []
ℹ Allowing request to "https://accounts.google.com/o/saml2/initsso?idpid=...&spid=...&forceauthn=false"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Allowing request to "https://ssl.gstatic.com/accounts/static/_/ss/k=gaia.gaiafe_signin.WvDPgsh3kM4.L.W.O/am=AIQtGQAAAAAAAAAAgKgJ/d=0/rs=ABkqax2UUyKnkOEajVX8DDOBkaeUQSiUOA"
ℹ Playwright: api => route.continue started []
ℹ Allowing request to "https://ssl.gstatic.com/accounts/static/_/js/k=gaia.gaiafe_signin.en_GB.s0-ASETtJbg.O/am=AIQtGQAAAAAAAAAAgKgJ/d=1/rs=ABkqax0KDjDVgYA7KEm8tSIBogOTQSX6wg/m=signin_chooseaccount,signin_botguard"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Playwright: api <= route.continue succeeded []
ℹ Allowing request to "https://lh3.googleusercontent.com/-UZQixBOzI9w/AAAAAAAAAAI/AAAAAAAAAAA/AHcKHtwDSNATo9jqO5d4fXLoi2u2a7Hzzw/photo.jpg?sz=64"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Allowing request to "https://ssl.gstatic.com/images/icons/ui/common/universal_language_settings-21.png"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Allowing request to "https://ssl.gstatic.com/images/branding/googlelogo/1x/googlelogo_color_112x36dp.png"
ℹ Playwright: api => route.continue started []
ℹ Allowing request to "https://ssl.gstatic.com/accounts/ui/arrow_right_1x.png"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Playwright: api <= route.continue succeeded []
ℹ Allowing request to "https://ssl.gstatic.com/accounts/static/_/js/k=gaia.gaiafe_signin.en_GB.s0-ASETtJbg.O/am=AIQtGQAAAAAAAAAAgKgJ/d=0/rs=ABkqax0KDjDVgYA7KEm8tSIBogOTQSX6wg/m=LEikZe,MpJwZc,syw,ws9Tlc,bX94Ud,sy4g,VpYaCb"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Allowing request to "https://ssl.gstatic.com/accounts/static/_/js/k=gaia.gaiafe_signin.en_GB.s0-ASETtJbg.O/am=AIQtGQAAAAAAAAAAgKgJ/d=0/rs=ABkqax0KDjDVgYA7KEm8tSIBogOTQSX6wg/m=nCyKU"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Allowing request to "https://accounts.google.com/generate_204?dLEk0w"
ℹ Playwright: api => route.continue started []
ℹ Playwright: api <= route.continue succeeded []
ℹ Playwright: api <= page.goto succeeded []
vietnha1999 commented 1 year ago

I have a similiar issue.

p-hash commented 1 year ago

Workaround: pass --headful=true to force gsts to spin up headful browser instance

ruimarinho commented 1 year ago

Indeed, this seems to be another trick from Google's playbook. It's probably a new protection against bots. Use --headful in these circumstances.

I'll see if upgrading playwright helps with the situation.