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
File details
Details for the file django-okta-authentication-1.2.1.tar.gz
.
File metadata
- Download URL: django-okta-authentication-1.2.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7e6afbcad5f56f6059e37e422adb50f1ea232a73d0d0a99898769ec8321bab1 |
|
MD5 | a4a12d75fb39548ee2a3f8ae4dbc95b2 |
|
BLAKE2b-256 | efb8ca286b12d88afa627970f2e08cb86be16427b5adc165723323b79ed65170 |