Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Signing out of gmail does not sign you out of rocketchat in the same browser

Open JackDragon opened this issue 10 years ago • 7 comments

Your Rocket.Chat version: 0.42.0

We use gmail (Google) authentication for logging in. However, if we sign out of gmail or sign out of the Chrome account, the rocketchat account still stays signed in.

This is a security issue since when I quit Chrome on a public computer, open Chrome again, I see that I am signed out of Google/gmail. However, I do not know that I am still signed in to rocketchat, and people can actually go to rocketchat and use my account.

I think that this should be synced.

Edit: This is specifically for using Rocketchat on a browser: I think signing out Google on that browser should sign you out of Rocketchat on that same browser.

Edited the title to make it more specific.

JackDragon avatar Oct 15 '16 00:10 JackDragon

I'm signed in to my google account on three computers.. which one should it be tied to?

I'd much rather stay logged in to the app, regardless of my browser/computers.

If you need to force RocketChat session out, it can be handed at:

https://myaccount.google.com/security

YesThatAllen avatar Oct 15 '16 01:10 YesThatAllen

That's expected behaviour. Have a look at the other apps that use google authentication, none of them would do what you describe with maybe a few exceptions due to bad implementation.

lucasvanhalst avatar Oct 15 '16 10:10 lucasvanhalst

This is a security issue since when I quit Chrome on a public computer, open Chrome again, I see that I am signed out of Google/gmail.

This seems more like user error. You should be using incognito mode on public computers, as it won't remember any session information (cookies, HTML5 local storage, etc.) when closed.

cdhowie avatar Oct 15 '16 20:10 cdhowie

Am I too used to how websites/apps that use steam authentication works?

I'm signed in to my google account on three computers.. which one should it be tied to?

Also, to make it clear I am talking about visiting rocketchat on the browser, not the separate electron app. It just feels intuitative to me that signing out of gmail on my browser should sign me out of rocketchat in the same browser on that computer.

You should be using incognito mode on public computers, as it won't remember any session information (cookies, HTML5 local storage, etc.) when closed.

It's not a completely public computer, but a shared company computer. It's more convenient to preserve history sometimes, since we can reopen tabs that we closed during issue/ticket triaging, for example.

JackDragon avatar Oct 16 '16 01:10 JackDragon

It just feels intuitative to me that signing out of gmail on my browser should sign me out of rocketchat in the same browser on that computer.

To be honest, I would expect the opposite. The Google OAuth service isn't a session manager, it's an authentication service. Once the user has been authenticated, the OAuth service isn't really involved anymore, is it?

I don't know of any other service that works this way, particularly with Google. When I log into any other service using Google (Github, Stack Overflow, etc.) the lifetime of my session with that service is not in any way tied to the lifetime of my session with Google; logging out of Google doesn't end my session with Github or SO.

cdhowie avatar Oct 17 '16 16:10 cdhowie

Yes, this is just how OAuth works. If you are looking for a Single Sign On system that can force logouts, you need to use an identity provider that supports SAML.

cpitman avatar Oct 19 '16 17:10 cpitman

This is a feature, not a bug. Closing.

antgel avatar Nov 15 '17 17:11 antgel