From c2fe751d152b73d20adb71b7b306f46142ec4dae Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 10 Sep 2015 12:09:01 -0400 Subject: [PATCH] Despite being disabled, OAuth config is still read, so switch to .get --- util/config/oauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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