Despite being disabled, OAuth config is still read, so switch to .get

This commit is contained in:
Joseph Schorr 2015-09-10 12:09:01 -04:00
parent f543a33c0d
commit c2fe751d15

View file

@ -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