From ce2cf9e35021901a8dfe08213fca6ed715b5a79b Mon Sep 17 00:00:00 2001 From: James Tanner Date: Mon, 23 Sep 2024 14:30:07 -0400 Subject: [PATCH] CLeanup. No-Issue Signed-off-by: James Tanner --- galaxy_ng/app/dynaconf_hooks.py | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/galaxy_ng/app/dynaconf_hooks.py b/galaxy_ng/app/dynaconf_hooks.py index 88db163021..0a7e626078 100755 --- a/galaxy_ng/app/dynaconf_hooks.py +++ b/galaxy_ng/app/dynaconf_hooks.py @@ -177,35 +177,7 @@ def configure_keycloak(settings: Dynaconf) -> Dict[str, Any]: "dynaconf_merge", ] - # Replace AUTH CLASSES - """ - data["GALAXY_AUTHENTICATION_CLASSES"] = [ - "galaxy_ng.app.auth.session.SessionAuthentication", - "galaxy_ng.app.auth.token.ExpiringTokenAuthentication", - "galaxy_ng.app.auth.keycloak.KeycloakBasicAuth", - "dynaconf_merge_unique", - ] - """ - - """ - data["GALAXY_AUTHENTICATION_CLASSES"] = [ - "galaxy_ng.app.auth.keycloak.KeycloakBasicAuth", - 'rest_framework.authentication.BasicAuthentication', - 'rest_framework.authentication.SessionAuthentication', - "galaxy_ng.app.auth.session.SessionAuthentication", - "galaxy_ng.app.auth.token.ExpiringTokenAuthentication", - #"galaxy_ng.app.auth.keycloak.KeycloakBasicAuth", - ] - """ - """ - data["GALAXY_AUTHENTICATION_CLASSES"] = [ - "galaxy_ng.app.auth.session.SessionAuthentication", - "galaxy_ng.app.auth.token.ExpiringTokenAuthentication", - "galaxy_ng.app.auth.keycloak.KeycloakBasicAuth", - #"dynaconf_merge_unique", - ] + settings.get("GALAXY_AUTHENTICATION_CLASSES", []) + ["dynaconf_merge_unique"] - print(data["GALAXY_AUTHENTICATION_CLASSES"]) - """ + # Replace AUTH CLASSES [shifted to configure_authentication_classes] # Set default to one day expiration data["GALAXY_TOKEN_EXPIRATION"] = settings.get("GALAXY_TOKEN_EXPIRATION", 1440)