You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://github.com/BeryJu/hass-auth-header offers an option to add authentication by setting an HTTP Header containing the username. This allows logging in through a proxy.
https://github.com/oauth2-proxy/oauth2-proxy provides a proxy that allows logging in through OIDC and setting an HTTP header and its value to a claim (alpha configuration needed).
An example configuration of the oauth2-proxy can look like this:
Here, the oauth2-proxy gets placed behind /oauth2/ and the only paths to be proxied with authentication of HA are /auth/* except /auth/token. Additionally, the app must be excluded since it doesn't support OIDC.
The text was updated successfully, but these errors were encountered:
muhlba91
changed the title
Home Assistant OIDC
Home Assistant OIDC (oauth2-proxy, Traefik Forward-Auth)
Oct 16, 2024
Home Assistant doesn't support OIDC out-of-the-box, and as per https://community.home-assistant.io/t/open-letter-for-improving-home-assistants-authentication-system-oidc-sso/494223 and home-assistant/architecture#832 it doesn't seem likely this will be implemented.
https://github.com/BeryJu/hass-auth-header offers an option to add authentication by setting an HTTP Header containing the username. This allows logging in through a proxy.
https://github.com/oauth2-proxy/oauth2-proxy provides a proxy that allows logging in through OIDC and setting an HTTP header and its value to a claim (alpha configuration needed).
An example configuration of the oauth2-proxy can look like this:
In this case, the proxy must be started with the following arguments:
To enable the proxy using Traefik in the cluster, a
Middleware
must be created:To use this middleware conditionally, instead of an
Ingress,
anIngressRoute
must be defined:Here, the oauth2-proxy gets placed behind
/oauth2/
and the only paths to be proxied with authentication of HA are/auth/*
except/auth/token
. Additionally, the app must be excluded since it doesn't support OIDC.The text was updated successfully, but these errors were encountered: