Skip to content
Snippets Groups Projects
Commit 7effc02d authored by alice grosch's avatar alice grosch
Browse files

Add image to allowed keys

parent c5b03dec
No related branches found
No related tags found
No related merge requests found
Pipeline #148613 passed
...@@ -17,7 +17,6 @@ class CustomHomeHandler(HomeHandler): ...@@ -17,7 +17,6 @@ class CustomHomeHandler(HomeHandler):
authentication = await user.authenticator.update_auth_state_custom_config(authentication, set_service="JupyterLab", force=True) authentication = await user.authenticator.update_auth_state_custom_config(authentication, set_service="JupyterLab", force=True)
await user.save_auth_state(authentication["auth_state"]) await user.save_auth_state(authentication["auth_state"])
await super().get() await super().get()
user.authenticator.log.debug(f"Updated authentication in CustomHomeHandler: {authentication['auth_state']['service_active']}")
class SimplePageHandler(BaseHandler): class SimplePageHandler(BaseHandler):
...@@ -40,7 +39,6 @@ class CustomImageHandler(SimplePageHandler): ...@@ -40,7 +39,6 @@ class CustomImageHandler(SimplePageHandler):
await user.authenticator.update_auth_state_custom_config(authentication, set_service="CustomImage", force=True) await user.authenticator.update_auth_state_custom_config(authentication, set_service="CustomImage", force=True)
await user.save_auth_state(authentication["auth_state"]) await user.save_auth_state(authentication["auth_state"])
await super().get() await super().get()
user.authenticator.log.debug(f"Updated authentication in CustomHomeHandler: {authentication['auth_state']['service_active']}")
class LinksHandler(SimplePageHandler): class LinksHandler(SimplePageHandler):
......
...@@ -25,6 +25,8 @@ def check_formdata_keys(data): ...@@ -25,6 +25,8 @@ def check_formdata_keys(data):
required_keys = {"name", "service", "system"} required_keys = {"name", "service", "system"}
if data.get("system") in unicore_systems: if data.get("system") in unicore_systems:
required_keys = required_keys | {"account", "project", "partition"} required_keys = required_keys | {"account", "project", "partition"}
if data.get("service") == "CustomImage":
required_keys = required_keys | {"image"}
allowed_keys = required_keys | { allowed_keys = required_keys | {
"reservation", "reservation",
"nodes", "nodes",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment