Under construction.
-
From the admin interface, go to
Applications > Providers
and click onCreate
-
Select
OAuth2/OpenID Provider
and clickNext
-
Fill the following details:
- Name:
Home Assistant Provider
- Authorization flow:
default-provider-authorization-explicit-consent
- Client type:
Confidential
- Client ID:
homeassistant
- Client Secret: Copy this value
- Redirect URIs/Origins: Click on
Add entry
(You can use either DNS, Internal/External IP or localhost)
- Name:
-
Click
Finish
to save the provider configuration -
Open the created Provider
-
On the Assigned to application section click on
Create
:- Name:
Home Assistant
- Slug:
home-assistant
- Provider:
Home Assistant Provider
Then save the configuration
- Name:
Important
For HTTPS configuration make sure to have a public valid SSL certificate (i.e. LetsEncrypt), if not, use HTTP instead (more insecure) or add your Authentik CA certificate to network.tls_ca_path
.
After installing this HACS addon, edit your configuration.yaml
file and add:
auth_oidc:
client_id: "homeassistant"
client_secret: "client_secret"
discovery_url: "https://auth.example.com/application/o/home-assistant/.well-known/openid-configuration"
Restart Home Assistant and go to https://hass.example.com/auth/oidc/welcome