Authenticated users using Okta
Project description
Django Okta Auth allows you to authenticate through Okta.
Installation
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')),
...
]
Settings
###OKTA_DOMAIN
Okta domain.
###OKTA_CLIENT_ID
Okta client id.
###OKTA_CLIENT_SECRET
Okta client secret.
###OKTA_SCOPE
default: 'openid email' OAuth scope parameter.
###OKTA_RESPONSE_TYPE
default: 'id_token' OAuth response type parameter.
###OKTA_USER_CREATION
default: True Allow creation of new users after successful authentication.
Logging
To enable logging add okta_auth to LOGGING['loggers'] options.
LOGGING = {
...,
'loggers': {
...,
'okta_auth': {
'handlers': ['console'],
'level': 'DEBUG',
}
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-okta-authentication-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b16297f7814fd4276da3f1a9afa85db4c81f1eec81a8d3bbcd990e86c3f797d6 |
|
MD5 | 36b85e47747a744349e6cfb51563bf8a |
|
BLAKE2b-256 | 842c02e7a08d83f6c8e17dea6be86d0200857f74de97e85b4489162e25a49cbe |