BeryJu / hass-auth-header

Home Assistant custom component, which allows you to delegate authentication to a reverse proxy.
GNU General Public License v3.0
263 stars 20 forks source link

[Enhancement] - Logout redirect #157

Open dugite-code opened 2 years ago

dugite-code commented 2 years ago

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.

RefineryX commented 2 years ago

I also agree, would love to see this enhancement!

Ethanadams642 commented 1 year ago

Has there been any further information on this?

dugite-code commented 1 year ago

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.

LexNastin commented 1 year ago

+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.