Django Okta Auth allows you to authenticate through Okta.
Run pip install django-okta-authentication
Add the OktaBackend to your AUTHENTICATION_BACKENDS setting:
AUTHENTICATION_BACKENDS = (
...
'okta_auth.backends.OktaBackend',
)Edit your urls.py to include:
urlpatterns = [
url(r'^okta/', include('okta_auth.urls')),
...
]Okta domain.
Okta client id.
Okta client secret.
default: 'openid email' OAuth scope parameter.
default: 'id_token' OAuth response type parameter.
default: True Allow creation of new users after successful
authentication.
To enable logging add okta_auth to LOGGING['loggers'] options.
LOGGING = {
...,
'loggers': {
...,
'okta_auth': {
'handlers': ['console'],
'level': 'DEBUG',
}
}
}