Ville Skyttä
b52c5c82b1
Use http.HTTPStatus in components/[gh]* ( #58246 )
2021-10-23 20:34:53 +02:00
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
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
9979e465aa
Fix hassio auth data ( #39244 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-25 14:22:50 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
springstan
fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant ( #33832 )
2020-04-08 23:20:03 +02:00
Pascal Vizeli
4731f7c721
Hass.io allow to reset password with CLI ( #30755 )
...
* Hass.io allow to reset passwort with CLI
* Add improvments
* fix comments
* fix lint
* Fix tests
* more tests
* Address comments
* sort imports
* fix test python37
2020-01-14 23:49:56 +01:00
Bas Nijholt
00dc721609
sort imports according to PEP8 for hassio ( #29634 )
2019-12-08 16:33:22 +01:00
Paulus Schoutsen
3231e22ddf
Remove direct authentication via trusted networks or API password ( #27656 )
...
* Remove direct authentication via trusted networks and API password
* Fix tests
2019-10-14 14:56:45 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
12d16d9bdc
Update test_auth.py
2019-01-11 12:55:23 -08:00
Paulus Schoutsen
b81260e912
Fix tests
2019-01-11 10:10:36 -08:00
Pascal Vizeli
f5d3aa1826
Hass.io auth/sso part2 ( #17324 )
...
* Update discovery.py
* Create const.py
* Update auth.py
* Update const.py
* Update const.py
* Update http.py
* Update handler.py
* Update auth.py
* Update auth.py
* Update test_auth.py
2018-10-11 10:55:38 +02:00
Pascal Vizeli
3f87d41381
Fix auth for hass.io ( #17318 )
...
* Update test_auth.py
* Update auth.py
* Update test_auth.py
2018-10-11 01:02:00 +02:00
Pascal Vizeli
40e0966d7f
Hassio auth ( #17274 )
...
* Create auth.py
* Update auth.py
* Update auth.py
* Update __init__.py
* Update auth.py
* Update auth.py
* Update auth.py
* Update auth.py
* Update auth.py
* Update auth.py
* Update auth.py
* Update auth.py
* Update auth.py
* Add tests
* Update test_auth.py
* Update auth.py
* Update test_auth.py
* Update auth.py
2018-10-10 14:07:51 +02:00