From 103879e3094ac885a738e52e03a943d394babc91 Mon Sep 17 00:00:00 2001 From: Bjoern Gruening Date: Mon, 16 Sep 2024 17:03:38 +0200 Subject: [PATCH] fix for https://github.com/galaxyproject/galaxy/issues/18816 --- lib/galaxy/authnz/psa_authnz.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/authnz/psa_authnz.py b/lib/galaxy/authnz/psa_authnz.py index 96ca33c6cd53..75c5edd6d35e 100644 --- a/lib/galaxy/authnz/psa_authnz.py +++ b/lib/galaxy/authnz/psa_authnz.py @@ -135,9 +135,10 @@ def _setup_idp(self, oidc_backend_config): self.config["KEY"] = oidc_backend_config.get("client_id") self.config["SECRET"] = oidc_backend_config.get("client_secret") self.config["TENANT_ID"] = oidc_backend_config.get("tenant_id") - self.config["OIDC_ENDPOINT"] = oidc_backend_config.get("oidc_endpoint") self.config["redirect_uri"] = oidc_backend_config.get("redirect_uri") self.config["EXTRA_SCOPES"] = oidc_backend_config.get("extra_scopes") + if oidc_backend_config.get("oidc_endpoint"): + self.config["OIDC_ENDPOINT"] = oidc_backend_config["oidc_endpoint"] if oidc_backend_config.get("prompt") is not None: self.config[setting_name("AUTH_EXTRA_ARGUMENTS")]["prompt"] = oidc_backend_config.get("prompt") if oidc_backend_config.get("api_url") is not None: