Remove direct authentication via trusted networks or API password (#27656)
* Remove direct authentication via trusted networks and API password * Fix tests
This commit is contained in:
1 parent
97478d1ef4
commit
3231e22ddf
33 files changed
+114
-423
No files matched your search
@@ -30,7 +30,7 @@ async def async_setup_auth(
|
||||
hass, provider_configs, module_configs
|
||||
)
|
||||
ensure_auth_manager_loaded(hass.auth)
|
||||
await async_setup_component(hass, "auth", {"http": {"api_password": "bla"}})
|
||||
await async_setup_component(hass, "auth", {})
|
||||
if setup_api:
|
||||
await async_setup_component(hass, "api", {})
|
||||
return await aiohttp_client(hass.http.app)
|
||||
@@ -103,7 +103,7 @@ def test_auth_code_store_expiration():
|
||||
|
||||
async def test_ws_current_user(hass, hass_ws_client, hass_access_token):
|
||||
"""Test the current user command with homeassistant creds."""
|
||||
assert await async_setup_component(hass, "auth", {"http": {"api_password": "bla"}})
|
||||
assert await async_setup_component(hass, "auth", {})
|
||||
|
||||
refresh_token = await hass.auth.async_validate_access_token(hass_access_token)
|
||||
user = refresh_token.user
|
||||
|
||||
Reference in new issue
Block a user