I am working on a SPA which relies on Google's sign in javascript library to authenticate users. A user filed a bug report that the app had leaked her Google email account when she demonstrated our product on a shared computer.
I've noticed that other websites suffer the same symptoms, so my example case will use medium.com.
To reproduce:
- Visit a public computer at your local library.
- Open Chrome
- Browse to mail.google.com and see that no user is logged in.
- Go to medium.com and log in with a Google account.
- Log out of medium.com
- Here is where log-in and log-out symmetry ends. You should be able to leave at this point.
- Visit mail.google.com again. See that you are automatically logged in.
It appears that authenticating with a 3rd party website also logs into Google's ecosystem, and then the account is left active after logging out of the 3rd party website.
Is there a method of authenticating a user via a Google account that does not include this side effect?