hass-auth-header icon indicating copy to clipboard operation
hass-auth-header copied to clipboard

Mobile app support?

Open patrik996 opened this issue 3 years ago • 9 comments

I just setup auth_header with use of swag and Authelia authentication. It works fine in the browser but on the mobile companion app it just gets a black screen when i try to set it up.

Is the mobile app not supported?

patrik996 avatar Mar 31 '22 14:03 patrik996

I'm using it successfully with the app, however I had to protect only a very specific subset of the proxy, else every request will have to be authorized which breaks the API (at least I think) Maybe try something like this (adapted to Authelia, I use Apache with Shibboleth): image

fservida avatar Apr 15 '22 19:04 fservida

im also facing this issue with ingress-nginx on kubernetes

anthr76 avatar Jun 07 '22 17:06 anthr76

I've not had to do anything custom, the App just works for me (using authentik as IDP, envoy/istio ingress on k8s and using proxy mode for HASS)

BeryJu avatar Jun 07 '22 18:06 BeryJu

I had to wipe the data for my app to get it to work (on Android 12). Otherwise, it would try to open a browser and never work.

AngellusMortis avatar Jul 22 '22 17:07 AngellusMortis

I can't get this to work, it will always try to open the browser (even after clearing the app as @AngellusMortis mentioned). Anyone that can tell me what they did perhaps?

jimz011 avatar Jul 27 '22 23:07 jimz011

https://github.com/authelia/authelia/issues/1842#issuecomment-977695269

hacker1024 avatar Sep 01 '22 14:09 hacker1024

This is an issue with the app, https://github.com/home-assistant/android/issues/1438

ajvpot avatar Sep 13 '22 02:09 ajvpot

Try this, it works for me with the app: https://github.com/home-assistant/android/issues/1438#issuecomment-1244106690

Thesola10 avatar Sep 13 '22 07:09 Thesola10

@BeryJu By any chance, do you use iOS for HA app? Reading around a bit it seems that the iOS app works (although config is not easy, you should only proxy /auth), but that the Android app uses a really old Webview that makes Authentik impossible to use.

For me on Android, if you reset all data for the HA app and enter the URL (with Authentik Proxy configured), it shows Authentik in messed up state without FIDO2 support.

Seems more like a badly designed app, using old Android Webviews instead of Chrome Custom Tabs.

Conclusion, if you use 2FA and/or Android, this does not seem like a good route until HA gets their #$@ together and implements proper external OpenID Connect into their app.

christiaangoossens avatar Nov 25 '22 18:11 christiaangoossens