-
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
Invalid Redirect URI - Nginx Proxy Manager & Authentik #333
Comments
I am having a similar issue as you describe. For example, navigating to I don't think it is a problem with this integration since external authentication works seamlessly everywhere except on the Android app, and even there, there are no obvious errors related to this integration (see debug log below). Hopefully someone smarter than me figures out the issue with Debug log:
Configuration for
Edit: for now, I am using an alternate subdomain without proxy authentication for mobile devices as described here |
Nice idea with just using a separate subdomain for mobile. Hopefully someone will look into this at some point, likely on the HA side, to see why the redirect URI doesn't work properly. |
Well I think I figured it out. The problem here was not the More specifically, when the outpost completed the authentication, it redirected to that endpoint but for some reason it stripped down all parameters from the original request. (I am using an external outpost since the HA installation is not at the same location as the Authentik server). Sonnet helped me narrow down the issue and I was ultimately able to constantly reproduce it by opening i.ex. I am not that sure if the reason of the missing parameters is Authentik or something strange taking place between the many redirections so I came up with this approach that Sonnet helped turn it into a working config. In my case, this is placed in the
This looks a bit dirty but I have a quite complex setup and so far nothing seems broken after this change. This works with both Android and iOS. I tried it with the latest version (2024.10.3-full). It might need some fine tuning but it is a good start point and definetely better than totally skipping SSO authentication by choosing a dual domain setup. |
I created an issue over on HA's Core repository for this issue but I'm not sure who would actually have to fix this.
home-assistant/core#128305 is the link to it. It has the information, screenshots, etc.
Basically, when going to ha.domain.tld, I get prompted by Authentik. I sign in. Then I get the screenshot showing the invalid redirect URI. If I then just try ha.domain.tld again after I authenticated, I can click Log In and get to the dashboard.
I'm not sure what I need to change or where to fix this or if its a bug with HA or this integration.
Hoping to find some direction here.
The text was updated successfully, but these errors were encountered: