lantern icon indicating copy to clipboard operation
lantern copied to clipboard

"Reset" doesn't clear OAuth token

Open scouttle opened this issue 12 years ago • 4 comments

I used the "reset" button to clear my Lantern settings.

When I went to log in the second time (after resetting), I clicked to accept the Google OAuth usage permissions – but then was not prompted to enter my Google credentials.

scouttle avatar Aug 01 '14 21:08 scouttle

So I think this is actually the appropriate behavior, as the browser itself is the one that's caching your login credentials. On the page where you hit accept, you should have the option to change who you're logging in as. Lantern, however, has deleted your oauth credentials at that point, and it actually refetches them when you hit accept, but the browser itself has cached your credentials such that you don't actually need to enter them again.

Does that make sense? I suppose there might be a way for us to programmatically clear WebView's cookie cache entirely, but is that useful?

myleshorton avatar Aug 02 '14 00:08 myleshorton

That does make sense, but it's a bit unexpected from the user's point of view, and could lead users to assume (as I did) that we're not really clearing out their data when we say we are. These users are likely to be (understandably) a bit paranoid, and we don't want to do things that make them worry we're treating their data irresponsibly.

Also, having preserving the cookie seems problematic if the user is using Lantern in an internet café. Will clearing cookies in Chrome clean out the WebView cookie jar? If not, can the user clear the cookie manually? If yes to either, we should document that on the site.

I'm thus inclined to think that it's worth exploring whether we can programmatically clear the cookie jar, but that this is not a show-stopper for the current release target. So, punting to 1.5 for now!

scouttle avatar Aug 04 '14 16:08 scouttle

Sounds good. Yeah the WebView stuff is completely separate from Chrome, but actually clearing your cookies in Safari in that case would probably do the trick (would need to test though).

Agreed it would make sense to see if we can do it via the command line or something, and great point about internet cafes!

On Mon, Aug 4, 2014 at 9:46 AM, scouttle [email protected] wrote:

That does make sense, but it's a bit unexpected from the user's point of view, and could lead users to assume (as I did) that we're not really clearing out their data when we say we are. These users are likely to be (understandably) a bit paranoid, and we don't want to do things that make them worry we're treating their data irresponsibly.

Also, having preserving the cookie seems problematic if the user is using Lantern in an internet café. Will clearing cookies in Chrome clean out the WebView cookie jar? If not, can the user clear the cookie manually? If yes to either, we should document that on the site.

I'm thus inclined to think that it's worth exploring whether we can programmatically clear the cookie jar, but that this is not a show-stopper for the current release target. So, punting to 1.5 for now!

— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1690#issuecomment-51085287.

Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89

myleshorton avatar Aug 04 '14 16:08 myleshorton

java

myleshorton avatar Mar 01 '15 09:03 myleshorton