mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
raise on ignored config in auth
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
This commit is contained in:
@@ -190,7 +190,9 @@ def update_auth(c, config):
|
|||||||
|
|
||||||
for auth_key, auth_value in tljh_auth_config.items():
|
for auth_key, auth_value in tljh_auth_config.items():
|
||||||
if not (auth_key[0] == auth_key[0].upper() and isinstance(auth_value, dict)):
|
if not (auth_key[0] == auth_key[0].upper() and isinstance(auth_value, dict)):
|
||||||
|
if auth_key == 'type':
|
||||||
continue
|
continue
|
||||||
|
raise ValueError(f"Error: auth.{auth_key} was ignored, it didn't look like a valid configuration")
|
||||||
class_name = auth_key
|
class_name = auth_key
|
||||||
class_config_to_set = auth_value
|
class_config_to_set = auth_value
|
||||||
class_config = c[class_name]
|
class_config = c[class_name]
|
||||||
|
|||||||
Reference in New Issue
Block a user