Pangolin + HA + Authentik #346
Replies: 5 comments 1 reply
|
Did you try this with a mobile browser on the same device or using a different device? Does it complete successfully if you use a different device/computer to login and input the code while keeping your phone on the code screen the entire time? Edit: the screenshot and the "The app correctly redirects to the external browser for authentication (tested Edge and Chrome)." lines indicate that an external browser somehow opened from the app. The app itself should not do that and the code should only show within the app itself. All other steps are completed on a different device while the app remains open. |
|
There has been a new update to this issue. All previously mentioned failed attempty have been done with a proxy between the device and Home Assistant. After adjusting some settings (literally just pointing the phone to use the internal IP instead of the proxy) and after some back and forth the login now works sucessfully. Do you happen to test this OIDC authentication with a proxy between Home Assistant? |
Do you mean reverse proxy? If so, yes. So just Pangolin with no other settings for the host should work fine. If you mean reverse proxy + auth (where you have to login before you even go to HA), then no, that is not a supported scenario. Pangolin + SSO within Pangolin enabled for that host is one of these unsupported setups. My guess is that in your setup there are two different domains in play. As long as the HA app stays on the domain you entered into the input box, it should not open an external browser and it will work. When you go to an external domain for any reason and leave the app it breaks. Having the SSO enabled within Pangolin for the host might cause exactly what you experience: the app starts on the inputted domain, then gets sent to Authentik within the app, breaking it out to the native browser and then you get stuck. Edit: actually, this would have happened on any version before v1 as well, you would have just logged in to the 'web' version of HA after instead of the actual mobile app, which you might not have noticed. |
|
Let me know if it works with Pangolin on the v1.1.1 release if you have SSO within Pangolin off for this domain. |
|
Yes, I am using Pangolin as a reverse proxy (Traefik under the hood) in combination with Authentik. Pangolin itself has Platform SSO enabled, so all connections have to be authenticated before they even reach Home Assistant. If I disable authentication in Pangolin, everything works, aside from some minor hiccups during the initial setup. For additional context, Pangolin, Authentik, and Home Assistant each use their own subdomain. That means your previous assumption was correct, and this is most likely the cause of the OIDC restrictions. So, to keep this discussion short, I believe the OIDC authentication is working as intended and that the current issue simply stems from my setup. |

Do you mean reverse proxy? If so, yes. So just Pangolin with no other settings for the host should work fine.
If you mean reverse proxy + auth (where you have to login before you even go to HA), then no, that is not a supported scenario. Pangolin + SSO within Pangolin enabled for that host is one of these unsupported setups.
My guess is that in your setup there are two different domains in play. As long as the HA app stays on the domain you entered into the input box, it should not open an external browser and it will work. When you go to an external domain for any reason and leave the app it breaks.
Hav…