Fixed a missing "jwks_uri" in metadata error that occurred when logging in with an oAuth2 provider like Azure or Google. #5666

This commit is contained in:
Yogesh Mahajan
2022-12-22 16:54:13 +05:30
committed by GitHub
parent 94d6b85d72
commit acc26744e3
3 changed files with 5 additions and 0 deletions

View File

@@ -106,6 +106,8 @@ class OAuth2Authentication(BaseAuthentication):
api_base_url=oauth2_config['OAUTH2_API_BASE_URL'],
client_kwargs={'scope': oauth2_config.get(
'OAUTH2_SCOPE', 'email profile')},
server_metadata_url=oauth2_config.get(
'OAUTH2_SERVER_METADATA_URL', None)
)
def get_source_name(self):