Skip to content
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

http authentication doesn't work properly in companion app #4894

Open
joinn1710 opened this issue Dec 10, 2024 · 1 comment
Open

http authentication doesn't work properly in companion app #4894

joinn1710 opened this issue Dec 10, 2024 · 1 comment
Labels
authentication bug Something isn't working question Further information is requested

Comments

@joinn1710
Copy link

If you have a home assistant server protected by HTTP authentication, the app supports inputting the credentials, but several things make it sometimes impossible to use.
To check the web address, i open it in a web browser, and it works like it should. then when trying to access it via the app, it gives me the login window, but after a couple seconds, it pops a new window on top saying it couldn't connect. then once I manage to enter the login information, it either works, or I mistyped something, and i'm locked out with no way of trying again. it's also not possible for some reason or other to add the username and password in the web address field.

Home Assistant Android app version(s):
2024.10.3-full
Android version(s):
14
Device model(s):
SM-S908B/DS(Samsung Galaxy S22 Ultra)
Home Assistant version:
Core:2024.12.1
Supervisor:2024.11.4
OS:14.0
Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications:
If you have a home assistant server protected by HTTP authentication, the app supports inputting the credentials, but several things make it sometimes impossible to use.
To check the web address, i open it in a web browser, and it works like it should. then when trying to access it via the app, it gives me the login window, but after a couple seconds, it pops a new window on top saying it couldn't connect. then once I manage to enter the login information, it either works, or I mistyped something, and i'm locked out with no way of trying again. it's also not possible for some reason or other to add the username and password in the web address field.

Companion App Logs:
homeassistant_companion_log_11-10-2024_12-51-24.txt


Screenshot or video of problem:

Additional information:

@joinn1710 joinn1710 added the bug Something isn't working label Dec 10, 2024
@dshokouhi
Copy link
Member

To check the web address, i open it in a web browser, and it works like it should. then when trying to access it via the app, it gives me the login window, but after a couple seconds, it pops a new window on top saying it couldn't connect.

what is the full error in that pop-up?

or I mistyped something, and i'm locked out with no way of trying again. it's also not possible for some reason or other to add the username and password in the web address field.

we cant fix anything if you get locked out, that is part of a feature you have enabled to lock out unsuccessful login attempts

12-10 12:06:15.316 16073 16137 E IntegrationRepository: Issue getting new version from core.
12-10 12:06:15.316 16073 16137 E IntegrationRepository: io.homeassistant.companion.android.common.data.integration.IntegrationException: retrofit2.HttpException: HTTP 401 

your issue is the server is rejecting the app, we cannot fix that as we expect successful response. What is your HA setup like? Are you using a Proxy? Anything else with authentication to consider?

@dshokouhi dshokouhi added question Further information is requested authentication labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants