Skip to main content

An Open edX Python Social Auth backend for Tutor Auth0

Project description

Overview

This is a custom backend for Open edX that allows users to authenticate using Auth0. This will also allow OTP login for users who have enabled it in their Auth0 account.

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.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

auth0_oauth2_backend-1.0.2-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.2.tar.gz.

File metadata

  • Download URL: auth0_oauth2_backend-1.0.2.tar.gz
  • Upload date:
  • Size: 5.6 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.2.tar.gz
Algorithm Hash digest
SHA256 9d1fd99c48a2cf9ea83389b12fffd7e4f82e4b1eb71acf8a0e4e26ee2cc4af5b
MD5 6c1a115be0d951643b2327bc4b095e75
BLAKE2b-256 e1d4f0e25e80fe89cd151690c6774b63143ce9e751245acaf2c6f86a420e5df7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auth0_oauth2_backend-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 34cf0f2cf9e9d4e2028746f6e0061b51306bb474bd26bb51c783d35f1b33f1ec
MD5 3561f6cb89528831db2cd0125910662b
BLAKE2b-256 76483608b710570f50e16b04313400ec20616bfdb44ff4da6ed7bf4b494748d8

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