Skip to main content

Django Okta Auth

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',
        }
    }
}

Metadata

Release files for django-okta-authentication 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-okta-authentication 1.2.1
File Size Uploaded Provenance
django-okta-authentication-1.2.1.tar.gz 6.8 kB Without provenance Details

Release files / django-okta-authentication-1.2.1.tar.gz

Download URL django-okta-authentication-1.2.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c7e6afbcad5f56f6059e37e422adb50f1ea232a73d0d0a99898769ec8321bab1
BLAKE2b-256 checksum
How to use checksums
efb8ca286b12d88afa627970f2e08cb86be16427b5adc165723323b79ed65170
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for django-okta-authentication 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page