diff --git a/util/config/oauth.py b/util/config/oauth.py index 0bd4473b8..0868c2c40 100644 --- a/util/config/oauth.py +++ b/util/config/oauth.py @@ -295,10 +295,10 @@ class OIDCConfig(OAuthConfig): raise Exception("Could not parse OIDC discovery information") def authorize_endpoint(self): - return self._oidc_config['authorization_endpoint'] + '?' + return self._oidc_config.get('authorization_endpoint', '') + '?' def token_endpoint(self): - return self._oidc_config['token_endpoint'] + return self._oidc_config.get('token_endpoint') def user_endpoint(self): return None