core/homeassistant/components/hassio
Sergio Oller 905100a189
Disambiguate Supervisor HTTPUnauthorized on user/password validation (#44940)
* Disambiguate HTTPUnauthorized on user/password validation

The HA core API usually returns 401 when the request does not
have proper authentication tokens or they have expired.

However the user/password validation endpoint may also return
401 when the given user/password is invalid.

The supervisor is currently unable to distinguish both scenarios,
and it needs to.

See https://github.com/home-assistant/supervisor/issues/2408

* Return 404 if user& password are not found/valid

* Fix test for invalid user/password
2021-01-08 17:28:22 +01:00
..
translations Prefix versions in system health (#44921) 2021-01-08 16:03:06 +01:00
__init__.py Add ozw add-on discovery and mqtt client (#43838) 2020-12-02 20:03:29 +01:00
addon_panel.py
auth.py Disambiguate Supervisor HTTPUnauthorized on user/password validation (#44940) 2021-01-08 17:28:22 +01:00
const.py
discovery.py
handler.py Add system health section for the Supervisor (#43074) 2020-11-11 20:12:24 +01:00
http.py Increase timeout for snapshot upload (#43851) 2020-12-02 14:34:17 +01:00
ingress.py
manifest.json Add system health section for the Supervisor (#43074) 2020-11-11 20:12:24 +01:00
services.yaml Add hassio service descriptions (#42597) 2020-10-30 21:18:53 +01:00
strings.json Add system health section for the Supervisor (#43074) 2020-11-11 20:12:24 +01:00
system_health.py Prefix versions in system health (#44921) 2021-01-08 16:03:06 +01:00