Skip to content

Commit

Permalink
This is a hack, this is only a hack.
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 Oct 2, 2024
1 parent 1322bf8 commit 7743c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galaxy_ng/app/dynaconf_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def configure_keycloak(settings: Dynaconf) -> Dict[str, Any]:
)
data["KEYCLOAK_HOST_LOOPBACK"] = settings.get("KEYCLOAK_HOST_LOOPBACK", default=None)
data["KEYCLOAK_URL"] = f"{KEYCLOAK_PROTOCOL}://{KEYCLOAK_HOST}:{KEYCLOAK_PORT}"
auth_url_str = "{keycloak}/auth/realms/{realm}/protocol/openid-connect/auth/"
auth_url_str = "{keycloak}/realms/{realm}/protocol/openid-connect/auth/"
data["SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL"] = auth_url_str.format(
keycloak=data["KEYCLOAK_URL"], realm=KEYCLOAK_REALM
)
Expand All @@ -106,7 +106,7 @@ def configure_keycloak(settings: Dynaconf) -> Dict[str, Any]:

data[
"SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL"
] = f"{data['KEYCLOAK_URL']}/auth/realms/{KEYCLOAK_REALM}/protocol/openid-connect/token/"
] = f"{data['KEYCLOAK_URL']}/realms/{KEYCLOAK_REALM}/protocol/openid-connect/token/"

data["SOCIAL_AUTH_LOGIN_REDIRECT_URL"] = settings.get(
"SOCIAL_AUTH_LOGIN_REDIRECT_URL", default="/ui/"
Expand Down

0 comments on commit 7743c69

Please sign in to comment.