Closed radroxx closed 5 years ago
AFAICT the legacy API password method should still work and I won't be changing it yet since the HA authentication system is still in a state of flux
After the update home-assistant, the utility did not work for me. Maybe I did not fully understand. But you can also add to the config file the ability to choose a method.
@radroxx did you still have the legacy_api_password
authentication type operational in your hass config when this stopped working for you?
@radroxx did you still have the
legacy_api_password
authentication type operational in your hass config when this stopped working for you?
I use the official docker container, after updating the utility stopped working. I stopped receiving notifications from the home-assistant. All the settings were the same as for the old version of the home-assistant.
I'm not on 0.77 yet. However, the documentation states:
To make the transition from API password to authentication system easier, we’ve added a legacy API password auth provider. This enables users to log in with the API password. This authentication provider is enabled by default if a user has an API password configured.
So it sounds like you didn't have an API password set.
I can confirm this. I'm on 0.78 and set the legacy_api_password:
auth_providers:
- type: homeassistant
- type: legacy_api_password
and it started working again... for now!
I can confirm this. I'm on 0.78 and set the legacy_api_password:
auth_providers: - type: homeassistant - type: legacy_api_password
and it started working again... for now!
Is it really necessary to manually enable legacy_api_password auth? The docs state that all that's necessary is setting the api password in the configuration like so:
http:
api_password: yourapipassword
At the moment api_password
will automatically enable the legacy api provider. Long-lived access tokens are merely supported since the newest release (https://github.com/home-assistant/home-assistant/pull/16453), so I think the support for the legacy API will stay there for a while. Only problem with that is the log entries related to suggesting conversion to those.
I might work on implementing support for the long lived tokens that where also introduced in auth update
I have some code written, just need to package it and test it on my router
Closed by #5 ?
You need change X-HA-Access header to "authorization: Bearer" for Long Token.