Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

/_signout not working in Chrome but does work in other browsers #31

Open
mkarlesky opened this issue Oct 13, 2017 · 6 comments
Open

/_signout not working in Chrome but does work in other browsers #31

mkarlesky opened this issue Oct 13, 2017 · 6 comments

Comments

@mkarlesky
Copy link

Thank you for your docker image. I'm a complete novice to OAuth, but with your image I was able to successfully deploy a secured landing page and reverse proxy two web apps (that are in turn now also secured with Google OAuth).

I'm experiencing an odd problem and have no idea how to troubleshoot it. The signout URI works successfully in three different browsers (Firefox & Safari on macOS and Safari on iOS) but effectively does nothing in Chrome (macOS).

When following the /_signout URL in Chrome, the login token remains current and / simply reloads, still logged in.

It's hard to imagine that Chrome itself is the problem as the transaction is straightforward and should trigger the appropriate actions in the Docker image. And, yet, it's the only browser in which this does not work.

Any ideas?

@danielmotaleite
Copy link
Contributor

i maybe some cache?
try to open chrome developer tools-> network and try to replicate. Check if any of the requests are being cached! you may need to exclude some .js from oauth... or tune the cache headers

@mkarlesky
Copy link
Author

Indeed. It was as simple as clearing relevant items in the cache. Thanks!

@ferringb
Copy link

ferringb commented Jan 8, 2018

@mkarlesky while you wiped the cache, this shouldn't have been a necessary step. Can you double check the headers on the cookie, and the request exchange? /_signout should be nulling the cookie- cache shouldn't matter here.

@danielmotaleite
Copy link
Contributor

Sometimes the problem is not in the cookie, but the cache of the redirect on the browser side from the valid site url to the google auth url. i also had this on static resources and i think it was one of the reasons that i did this code change: 7426c53

@mkarlesky
Copy link
Author

@ferringb Happy to investigate. However, I'm a n00b on OAuth (and the innards of cookies, for that matter). If you provide some instructions I'll gladly carry out the tests and inspections and report back.

@mkarlesky mkarlesky reopened this Jan 11, 2018
@nodefactory-bk
Copy link

Doesn't do much in chrome or firefox for me.

Cookies are removed and I get redirected to google and then immediately get redirected back and logged in again. Or in case of an unauthorized account I get back a 403 since I can't switch accounts because I don't get the google account login/selection screen.

Might well be browser cache related however I don't see cache mentioned in the network traces.

Screenshots from chrome (proper login) and firefox (google account that isn't allowed) network monitor attached.

Chrome with allowed account:
chrome-ok-user

Firefox with denied account:
firefox-bad-account

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants