Use IndieAuth for client ID (#15369)
* Use IndieAuth for client ID * Lint * Lint & Fix tests * Allow local IP addresses * Update comment
This commit is contained in:
parent
f7d7d825b0
commit
0d4841cbea
14 changed files with 329 additions and 347 deletions
|
@ -31,6 +31,8 @@ from homeassistant.util.async_ import (
|
|||
_TEST_INSTANCE_PORT = SERVER_PORT
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
INSTANCES = []
|
||||
CLIENT_ID = 'https://example.com/app'
|
||||
CLIENT_REDIRECT_URI = 'https://example.com/app/callback'
|
||||
|
||||
|
||||
def threadsafe_callback_factory(func):
|
||||
|
@ -330,8 +332,6 @@ class MockUser(auth.User):
|
|||
def ensure_auth_manager_loaded(auth_mgr):
|
||||
"""Ensure an auth manager is considered loaded."""
|
||||
store = auth_mgr._store
|
||||
if store._clients is None:
|
||||
store._clients = {}
|
||||
if store._users is None:
|
||||
store._users = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue