-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Describe the bug
The Auth does not work with an authentik provider after upgrade to 1.2.0
To Reproduce
Steps to reproduce the behavior:
- In login page, click OpenID/OAuth2 Authentication
- Receive a nice 500 error
Expected behavior
Should take you to Authentik login
Setup
Home Assistant: Core 2025.12.5
Integration: 1.2.0
Identity Provider: Authentik 2025.10.3
Additional context
With my limited understanding of OIDC/OpenID and Homeassistant, and taking a look at the code, I think the problem lies in the code introduced in views.py,
there's a direct call to conf[CONF_AUTHORIZE_URL] that according to the documentation, is not necessary if the OpenID endpoint provides a configuration url. I think there should be something in place to check if the url is to be obtained from the configuration.yml of from the config url from the authenticator, instead of using directly a config key from yml
Once I added the corresponding configuration in my .yml to match the offered "authorization_endpoint" through the "authorize_url" in the yml config file everything went back to working condition