Skip to content

Commit

Permalink
CLeanup.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Sep 23, 2024
1 parent 38adb3b commit ce2cf9e
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions galaxy_ng/app/dynaconf_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce2cf9e

Please sign in to comment.