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:
1 parent
f7d7d825b0
commit
0d4841cbea
14 files changed
+329
-347
No files matched your search
+2
-2
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user