Skip to main content

An Open edX Python Social Auth backend for Auth0

Project description

Overview

Usage

1. Add this package to your project’s requiremets

Add this project to extra pip requirements.

OPENEDX_EXTRA_PIP_REQUIREMENTS:
- git+https://github.com/blend-ed/auth0-oauth2-backend.git

2. Configure your Open edX lms application

from tutor import hooks

hooks.Filters.ENV_PATCHES.add_items(
    [
        (
            "openedx-common-settings",
            """
AUTH0_DOMAIN = <YOUR_AUTH0_DOMAIN>
AUTH0_AUDIENCE = <YOUR_AUTH0_AUDIENCE>
            """,
        ),
        (
            "lms-env",
            """
THIRD_PARTY_AUTH_BACKENDS: ["auth0_oauth2.auth0.Auth0OAuth2","social_core.backends.google.GoogleOAuth2", "common.djangoapps.third_party_auth.saml.SAMLAuthBackend", "django.contrib.auth.backends.ModelBackend"]
SOCIAL_AUTH_AUTH0_PLUGIN_FIELDS_STORED_IN_SESSION:
- "auth_entry"
ADDL_INSTALLED_APPS:
- "auth0_oauth2"
            """
        ),
        (
            "common-env-features",
            """
ENABLE_THIRD_PARTY_AUTH: true
            """
        )
    ]
)

3. Configure your Auth0 provider configurations

Initial details section Options section Secrets section

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

auth0_oauth2_backend-1.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

auth0_oauth2_backend-1.0.1-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file auth0_oauth2_backend-1.0.1.tar.gz.

File metadata

  • Download URL: auth0_oauth2_backend-1.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for auth0_oauth2_backend-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3dd74c5dcb358d447914346defb12855bb6807b5e8693d91734bf06264153a48
MD5 46966659087267190f54a6cfc85138c8
BLAKE2b-256 82012581054318bb0c0a8c6d691d1c60452d516b8852d62428b9e17e21fa5522

See more details on using hashes here.

File details

Details for the file auth0_oauth2_backend-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for auth0_oauth2_backend-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f119dd23b9d92a15215d13a26162dff69bc29de9cb9775add51eedbc9ee9b139
MD5 6210e2b3a0587f9e72180c217e0cb776
BLAKE2b-256 003f4a07268d2392e37a66f073ec7f98ccc56d3da57ad75d50e6abf2b7b0a70e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page