Authentication Breaking HA Login #1468

Closed
opened 2026-04-05 19:29:12 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @samumatic on 5/21/2025

This is a moved issue from Ferdinand99/home-assistant-newt-addon#3, as it affects the Pangolin authentication.

Describe the bug

After successfully installing the Home Assistant Newt Addon the HA instance is available through the specified domain in a Browser. But when trying to connect via android app to the ha instance an error message

Unable to connect to Home Assistant.

Retrying in 41 seconds...  

under the URL https://my.domain.com/lovelace?external_auth=1 is interrupting the login process.
When disabling the Pangolin authentication the app authentication works, but not when enabled.

To Reproduce

Steps to reproduce the behavior:

  1. Install Newt Addon on Home Assistant
  2. Enable resource authentication in Pangolin
  3. Try to log in via the Home Assistant Android app
  4. Login with Pangolin authentication
  5. Unable to connect

Expected behavior

The browser would backlink to the android app and successful log me in

📜 Logs

Paste any relevant logs here:

There are no logs in HA, as the url https://my.domain.com/lovelace?external_auth=1 doesn't reach the HA instance.

🏠 Home Assistant Version
Home Assistant Version: 2025.5.2
Newt Add-on Version: 1.3.2
Installation Type: Home Assistant OS

💻 System Details
Hardware: HP-Thinclient
Network Setup: Ethernet

ℹ️ Additional context
After a while sometimes the url

https://my.domain.com/lovelace?external_auth=1&p_session_request=6rapopppx5bzsx5w63fb6iy6yrlq4abq&p_session_request=zdctmsjpa2zzg54bjqzn45oyeid3ps5e&p_session_request=z3szsii6kzux4nzyl6bfjcxqqk367vla&p_session_request=4ygwrug4ylivl4cslm3qmexjznm6uquq&p_session_request=ntcr5bkxxv4dbyw3xbbby53j54nulu5v&p_session_request=q7cgbrn4abt47ztnuihl44r5id223pdc&p_session_request=jt75bu5m3pzfizck2iotkut2gxad7lgk&p_session_request=2x6waf6ose5pn2hhcagwyqkr4ey5d5eh&p_session_request=j623z6g3xd5scvfxpqi3cmfx3g5txc6k&p_session_request=mosy66xw7wkycmyk46ij2ahn7oo6aom4&p_session_request=ljj3wzrutpfoo4433ngwepo43fy3fed3&p_session_request=nx7yrdhr3u3bqubabp3mgjgwh7moy2x2&p_session_request=7azm5ikh2wctp3uqyr77acq5ycntqgq3&p_session_request=t23xxg2kucf773g4sgkgduh5v3lu7vka&p_session_request=mfoauszb4h7saarcddhpyfs5ghatb44r&p_session_request=krro4m55qenqyhepyfyfpoeuvpfatihu&p_session_request=3vjtinsjd5tvnxrbxypnbxnubmulsxyc&p_session_request=23wlkjr23oyv2w7ltd4ra6dnn3xihkgr&p_session_request=d5tdwx6dxnwyhiklkkbo7b7mx4lmfz4v&p_session_request=ahwkljkhq5n7duxvjwwfuixf5tg7gc5b&p_session_request=lbgasmc7uupn67vjumo2m3izwluhot37

is opened, firefox is then refusing to open the page with

The page isn’t redirecting properly

The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

Is there possibly a path that must be rule whitelisted?

*Originally created by @samumatic on 5/21/2025* This is a moved issue from Ferdinand99/home-assistant-newt-addon#3, as it affects the Pangolin authentication. ### **Describe the bug** After successfully installing the Home Assistant Newt Addon the HA instance is available through the specified domain in a Browser. But when trying to connect via android app to the ha instance an error message ``` Unable to connect to Home Assistant. Retrying in 41 seconds... ``` under the URL `https://my.domain.com/lovelace?external_auth=1` is interrupting the login process. When disabling the Pangolin authentication the app authentication works, but not when enabled. ### **To Reproduce** Steps to reproduce the behavior: 1. Install Newt Addon on Home Assistant 2. Enable resource authentication in Pangolin 3. Try to log in via the Home Assistant Android app 4. Login with Pangolin authentication 5. Unable to connect ### **Expected behavior** The browser would backlink to the android app and successful log me in ### **📜 Logs** Paste any relevant logs here: There are no logs in HA, as the url `https://my.domain.com/lovelace?external_auth=1` doesn't reach the HA instance. 🏠 Home Assistant Version Home Assistant Version: 2025.5.2 Newt Add-on Version: 1.3.2 Installation Type: Home Assistant OS 💻 System Details Hardware: HP-Thinclient Network Setup: Ethernet ℹ️ Additional context After a while sometimes the url ``` https://my.domain.com/lovelace?external_auth=1&p_session_request=6rapopppx5bzsx5w63fb6iy6yrlq4abq&p_session_request=zdctmsjpa2zzg54bjqzn45oyeid3ps5e&p_session_request=z3szsii6kzux4nzyl6bfjcxqqk367vla&p_session_request=4ygwrug4ylivl4cslm3qmexjznm6uquq&p_session_request=ntcr5bkxxv4dbyw3xbbby53j54nulu5v&p_session_request=q7cgbrn4abt47ztnuihl44r5id223pdc&p_session_request=jt75bu5m3pzfizck2iotkut2gxad7lgk&p_session_request=2x6waf6ose5pn2hhcagwyqkr4ey5d5eh&p_session_request=j623z6g3xd5scvfxpqi3cmfx3g5txc6k&p_session_request=mosy66xw7wkycmyk46ij2ahn7oo6aom4&p_session_request=ljj3wzrutpfoo4433ngwepo43fy3fed3&p_session_request=nx7yrdhr3u3bqubabp3mgjgwh7moy2x2&p_session_request=7azm5ikh2wctp3uqyr77acq5ycntqgq3&p_session_request=t23xxg2kucf773g4sgkgduh5v3lu7vka&p_session_request=mfoauszb4h7saarcddhpyfs5ghatb44r&p_session_request=krro4m55qenqyhepyfyfpoeuvpfatihu&p_session_request=3vjtinsjd5tvnxrbxypnbxnubmulsxyc&p_session_request=23wlkjr23oyv2w7ltd4ra6dnn3xihkgr&p_session_request=d5tdwx6dxnwyhiklkkbo7b7mx4lmfz4v&p_session_request=ahwkljkhq5n7duxvjwwfuixf5tg7gc5b&p_session_request=lbgasmc7uupn67vjumo2m3izwluhot37 ``` is opened, firefox is then refusing to open the page with ``` The page isn’t redirecting properly The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete. ``` Is there possibly a path that must be rule whitelisted?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1468