Provide a way to bypass the SSL cert verification for OAuth2 provider. #6095

This commit is contained in:
Yogesh Mahajan
2023-12-04 11:19:14 +05:30
committed by GitHub
parent 444f3a3189
commit 4e2aa82ddd
3 changed files with 10 additions and 1 deletions

View File

@@ -106,7 +106,9 @@ class OAuth2Authentication(BaseAuthentication):
authorize_url=oauth2_config['OAUTH2_AUTHORIZATION_URL'],
api_base_url=oauth2_config['OAUTH2_API_BASE_URL'],
client_kwargs={'scope': oauth2_config.get(
'OAUTH2_SCOPE', 'email profile')},
'OAUTH2_SCOPE', 'email profile'),
'verify': oauth2_config.get(
'OAUTH2_SSL_CERT_VERIFICATION', True)},
server_metadata_url=oauth2_config.get(
'OAUTH2_SERVER_METADATA_URL', None)
)