-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to authenticate via browser #194
Comments
Check in the Homeassistant logs if there's any errors/warnings in there |
Here's the log with no username exact header in the config is shown in my prior post (also added the Cloudflare IP and my public IP to the trusted IPs). I removed my public IP, domain and other potentially private info from the log below.
|
configure auth_header:
# Optionally set this if you're not using authentik proxy or oauth2_proxy
username_header: X-authentik-username |
Edit: I am dumb, testing now. Edit2 : I get the same error I think
config
|
why did you set |
I misinterpreted and thought I was supposed to put the actual username there. I also tried and get
|
your username in authentik needs to match the username in HASS, the username that is shown under |
Ah that progress me forward. I get a new error:
1.2.3.4 = my ISP IP address which I've added in the config as a trusted IP, not sure why it gets an error. |
Just an update on this. I tried with an incognito browser and get a different error:
my authnetik username = eric as does my HA username. My config:
I've tried I also tested this bypassing the proxies by just opening the port on my router and it worked fine. There's clearly something wrong in my HA config I just don't know what I am doing wrong. I am able to authenticate via authentik and it redirects to HA which says header authentication, login aborted. |
I installed the addon about 1 week ago and I'm running in the same error as @mag1c22. I just opened hass in a private window of my browser and it just shows me the same screen without a redirection to my authentik instance. My hass is behind a NginxProxyManager, do I have to add there something as well? |
You need to add a snippet to npm you can find it in authentik under the provider you created for home assistant. Then copy past it in npm proxy host > your poxy > advanced tab. |
maybe I'm a bit stupid, but I can't find the snippet :( EDIT: Ok I'm trying it with forward auth now instead of proxy (that was my old setting from the documentation, what is the right one to choose here?) |
ok, I was able to get it working to that point, that authentik is doing its login process but afterwards its telling me this: now I have to debug the authheader addon I installed in homeassistant right? |
``Apologies for what probably is an easy solution, I am just new to this.
I've got my reverse proxy working and the header integration installed.
When I click the ha.domain.com URL in nginx it brings me to a page that says:
Home Assistant
You're about to give https://ha.domain.com access to your Home Assistant instance.
Logging in with Header Authentication
Login Aborted:
START OVER
or log in with:
Home Assistant Local
Here is my conf.yaml:
I've tried un-commenting the
username_header:
line and adding my authentik and HA username there but neither work. I'm not really sure what I am supposed to be putting there so I assume that is my issue...Many thanks!
The text was updated successfully, but these errors were encountered: