I'm working on switching over my application from a custom authorization to Google OIDC using these instructions.
I've integrated the button and sign-in features as recommended and the standard user-flow of:
page load -> user clicks on Google Sign-In button -> pop-up -> calls callback function, succeeds locally and in production.
The issue came up when I tried to refactor my automation testing to use the new user flow:
user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/88.0.4324.182 Safari/537.36
Upon clicking the Google Sign-In button, the pop-up dialog loads, but the follow console logs are generated.
{"level":"SEVERE","message":"https://myaccount.google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274089892,"type":""}
{"level":"SEVERE","message":"https://myaccount.google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274090581,"type":""}
{"level":"SEVERE","message":"http://google.com/403 - Failed to load resource: the server responded with a status of 404 (Not Found)","timestamp":1614274091086,"type":""}
{"level":"SEVERE","message":"https://google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274091885,"type":""}
{"level":"SEVERE","message":"https://accounts.google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274092437,"type":""}
{"level":"SEVERE","message":"https://accounts.google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274092793,"type":""}
{"level":"SEVERE","message":"http://google.com/403 - Failed to load resource: the server responded with a status of 404 (Not Found)","timestamp":1614274093286,"type":""}
{"level":"SEVERE","message":"https://google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274093998,"type":""}
{"level":"SEVERE","message":"http://google.com/403 - Failed to load resource: the server responded with a status of 404 (Not Found)","timestamp":1614274094787,"type":""}
{"level":"SEVERE","message":"https://google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274095488,"type":""}
{"level":"SEVERE","message":"https://google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274096191,"type":""}
{"level":"SEVERE","message":"https://accounts.google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274096491,"type":""}
{"level":"SEVERE","message":"https://accounts.google.com/403 - Failed to load resource: the server responded with a status of 404 ()","timestamp":1614274096884,"type":""}
On completion of the dialog, the pop-up closes, and onSignIn callback function was not called.
To me, it seems like the Google Sign-In pop-up is responding differently to being called by a selenium webdriver session vs a real user. Is my workflow supported? If this kind of testing should be working, what should I be looking to next for troubleshooting?
I'm working on switching over my application from a custom authorization to Google OIDC using these instructions.
I've integrated the button and sign-in features as recommended and the standard user-flow of:
page load -> user clicks on Google Sign-In button -> pop-up -> calls callback function, succeeds locally and in production.
The issue came up when I tried to refactor my automation testing to use the new user flow:
user-agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/88.0.4324.182 Safari/537.36Upon clicking the Google Sign-In button, the pop-up dialog loads, but the follow console logs are generated.
On completion of the dialog, the pop-up closes, and onSignIn callback function was not called.
To me, it seems like the Google Sign-In pop-up is responding differently to being called by a selenium webdriver session vs a real user. Is my workflow supported? If this kind of testing should be working, what should I be looking to next for troubleshooting?