Skip to content

Commit

Permalink
fix(auth): remove urljoin() from IDP URL generation for k8s build_image
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Mar 21, 2024
1 parent e111af4 commit bf52872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from gateway.conf import gateway_settings
from gateway.models.conf import AuthConfiguration, Token

IDP_ISSUER_URL = urljoin(gateway_settings.IDP_URL, "/".join(["realms", gateway_settings.IDP_REALM]))
IDP_ISSUER_URL = gateway_settings.IDP_URL.rstrip("/") + "/".join(["realms", gateway_settings.IDP_REALM])

# IDP i.e. Keycloak
realm_idp_settings = AuthConfiguration(
Expand Down

0 comments on commit bf52872

Please sign in to comment.