diff --git a/gateway/auth.py b/gateway/auth.py index caef70b..3756e38 100644 --- a/gateway/auth.py +++ b/gateway/auth.py @@ -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(