raftario / filite

A simple, light and standalone pastebin, URL shortener and file-sharing service
MIT License
190 stars 16 forks source link

Logout doesn't work #14

Closed steven-joruk closed 5 years ago

steven-joruk commented 5 years ago

When I acces /logout I see the "Logged out" text, and I added a debug check to make sure identity.is_none() at that point, which it is... but then when I access any other page it's somehow remembered the identity. I tried this with Firefox and Gnome Web. I don't have any cookies stored:

[2019-10-26T12:19:49Z INFO  actix_web::middleware::logger] [::1]:34458 "GET /logout HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15
(KHTML, like Gecko) Version/13.0 Safari/605.1.15 Epiphany/605.1.15" 0.000530

Go to '/'
**snip favico**

[2019-10-26T12:19:52Z INFO  actix_web::middleware::logger] [::1]:34458 "GET / HTTP/1.1" 200 13041 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (K
HTML, like Gecko) Version/13.0 Safari/605.1.15 Epiphany/605.1.15" 0.000617
identity: filite
raftario commented 5 years ago

I assumed this was due to Firefox saving the credentials, once I disabled it logout was working fine, but since the identity isn't None this obviously isn't the case.

steven-joruk commented 5 years ago

Sorry, you're right. I didn't realise Firefox private windows shared the same cache, and I had a separate window private open during my testing :man_facepalming:

the-notable commented 3 years ago

I see this issue was closed, but was there any resolution. I having the same problem where the identity isn't being "forgotten" on logout. If I manually resend the old cookie on subsequent requests the Identity Service still has the identity. @steven-joruk