Despite being disabled, OAuth config is still read, so switch to .get
This commit is contained in:
parent
f543a33c0d
commit
c2fe751d15
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue