Skip to content

Authentication fails when opened in external browser #6375

Description

@tobi-nb

Home Assistant Android app version(s): 2026.2.1-full

Android version(s): 16

Device model(s): Nothing Phone (2)

Home Assistant version: 2026.1.3

Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications:
My HA instance is available on the internet but protected via my reverse proxy (Pangolin). This means I have to authenticate before seeing the login screen of HA. In the latest version, when opening the app this would work just fine, but now the behaviour changed.
The unintended behaviour is as follows: When disabling the reverse proxy authentication screen, HA opens the login screen right away in the app and I can log in. When the reverse proxy screen is active, HA does not open the login screen in the app but opens it externally via the phones browser. When I type in the credentials here, HA accepts them but is stuck in the redirection to the app. The only option displayed is then "start from the beginning". It seems as if the redirection to the app is broken. HA sends a notification as "Login attempt or request with invalid authentication from XX.dip0.t-ipconnect.de (193.159.XX.XX). See the log for details."

The log says:
Logger: homeassistant.components.http.ban
Quelle: components/http/ban.py:136
Integration: HTTP (Dokumentation, Probleme)
Erstmals aufgetreten: 11:46:10 (1 Vorkommnis)
Zuletzt protokolliert: 11:46:10
Login attempt or request with invalid authentication from XX.dip0.t-ipconnect.de (193.159.XX.XX). Requested URL: '/auth/login_flow/a4aedce7b7101c7d18a0f53c4db2ca7e'. (Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36)

I checked if HA somehow banned my IP due to this but it seems as if there are no bans. The video shows the problem.

Companion App Logs:


Screenshot or video of problem:

Authentication.Bug.mp4

Additional information:
This worked before and I had no problems with additional authentication screens. Sadly I cannot recall the version it worked last time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions