From 92b78992b79f81d802d28673dcef137a403cc6a5 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 1 Oct 2024 18:54:33 -0400 Subject: [PATCH] Lint ... No-Issue Signed-off-by: James Tanner --- galaxy_ng/app/dynaconf_hooks.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/galaxy_ng/app/dynaconf_hooks.py b/galaxy_ng/app/dynaconf_hooks.py index 9b1f5640fc..1110f5199f 100755 --- a/galaxy_ng/app/dynaconf_hooks.py +++ b/galaxy_ng/app/dynaconf_hooks.py @@ -100,8 +100,10 @@ def configure_keycloak(settings: Dynaconf) -> Dict[str, Any]: KEYCLOAK_REALM = settings.get("KEYCLOAK_REALM", default=None) KEYCLOAK_AUTH_PREFIX = settings.get("KEYCLOAK_AUTH_PREFIX", default="") - SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL = settings.get("SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL", default=None) - SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL = settings.get("SOCIAL_AUTH_ACCESS_TOKEN_URL", default=None) + SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL = \ + settings.get("SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL", default=None) + SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL = \ + settings.get("SOCIAL_AUTH_ACCESS_TOKEN_URL", default=None) # Add settings if Social Auth values are provided if all( @@ -145,7 +147,10 @@ def configure_keycloak(settings: Dynaconf) -> Dict[str, Any]: if SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL is None: data[ "SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL" - ] = f"{data['KEYCLOAK_URL']}/{KEYCLOAK_AUTH_PREFIX}realms/{KEYCLOAK_REALM}/protocol/openid-connect/token/" + ] = ( + f"{data['KEYCLOAK_URL']}/{KEYCLOAK_AUTH_PREFIX}realms/" + f"{KEYCLOAK_REALM}/protocol/openid-connect/token/" + ) data["SOCIAL_AUTH_LOGIN_REDIRECT_URL"] = settings.get( "SOCIAL_AUTH_LOGIN_REDIRECT_URL", default="/ui/"