hass-auth-header icon indicating copy to clipboard operation
hass-auth-header copied to clipboard

[Enhancement] - Logout redirect

Open dugite-code opened this issue 3 years ago • 4 comments
trafficstars

Currently Homeassistant immediately logs back in when using the logout button. Would be nice to redirect to a logout URL such as authentik's signout url https://example.tld/outpost.goauthentik.io/sign_out

I would normaly try and use my reverse proxy to redirect /logout urls but it looks like HA dosn't work that way. The only hint I've found so far is this pull request for disconnecting websockets after a token is revoked.

dugite-code avatar Jul 07 '22 08:07 dugite-code

I also agree, would love to see this enhancement!

RefineryX avatar Aug 08 '22 21:08 RefineryX

Has there been any further information on this?

heehee-haha-man avatar May 01 '23 23:05 heehee-haha-man

My general understanding is that the 3rd party authentication implementation in Homeassistant isn't flexible and extremely rudimentary. With the main developers having expressed no desire to implement or support other Single sign on implementations I don't think there is a simple way to implement a logout redirect, at the moment at least.

dugite-code avatar May 02 '23 03:05 dugite-code

+1

For the very least, even if not a redirect, provide a way for it to not stay perpetually logged in even after pressing logout.

LexNastin avatar Sep 08 '23 09:09 LexNastin