|
|
@ -144,6 +144,8 @@ WSGI_APPLICATION = 'app.wsgi.application' |
|
|
|
AUTHENTICATION_BACKENDS = [ |
|
|
|
'social_core.backends.github.GithubOAuth2', |
|
|
|
'social_core.backends.azuread_tenant.AzureADTenantOAuth2', |
|
|
|
'social_core.backends.okta.OktaOAuth2', |
|
|
|
'social_core.backends.okta_openidconnect.OktaOpenIdConnect', |
|
|
|
'django.contrib.auth.backends.ModelBackend', |
|
|
|
] |
|
|
|
|
|
|
@ -173,6 +175,14 @@ if AZUREAD_ADMIN_GROUP_ID: |
|
|
|
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_RESOURCE = 'https://graph.microsoft.com/' |
|
|
|
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SCOPE = ['Directory.Read.All'] |
|
|
|
|
|
|
|
SOCIAL_AUTH_OKTA_OAUTH2_KEY = env('OAUTH_OKTA_OAUTH2_KEY', None) |
|
|
|
SOCIAL_AUTH_OKTA_OAUTH2_SECRET = env('OAUTH_OKTA_OAUTH2_SECRET', None) |
|
|
|
SOCIAL_AUTH_OKTA_OAUTH2_API_URL = env('OAUTH_OKTA_OAUTH2_API_URL', None) |
|
|
|
|
|
|
|
SOCIAL_AUTH_OKTA_OPENIDCONNECT_KEY = env('OAUTH_OKTA_OPENIDCONNECT_KEY', None) |
|
|
|
SOCIAL_AUTH_OKTA_OPENIDCONNECT_SECRET = env('OAUTH_OKTA_OPENIDCONNECT_SECRET', None) |
|
|
|
SOCIAL_AUTH_OKTA_OPENIDCONNECT_API_URL = env('OAUTH_OKTA_OPENIDCONNECT_API_URL', None) |
|
|
|
|
|
|
|
SOCIAL_AUTH_PIPELINE = [ |
|
|
|
'social_core.pipeline.social_auth.social_details', |
|
|
|
'social_core.pipeline.social_auth.social_uid', |
|
|
|