This package is available for Auth0 service to authenticate users for edX.
sudo su - edxapp -s /bin/bash
cd ~/
. edxapp_env
git clone https://github.com/ngi644/openedx_auth0
pip install -e openedx_auth0/
In lms.env.json
file:
-
"ADDL_INSTALLED_APPS": ["openedx_auth0"]
to the root node. -
"THIRD_PARTY_AUTH_BACKENDS": ["openedx_auth0.auth0.Auth0OAuth2"]
to the root node. -
"AUTH0_DOMAIN": "your.auth0.domain"
to the list ofFEATURES
. -
"ENABLE_THIRD_PARTY_AUTH": true
in the list ofFEATURES
.
~$ cd /edx/app/edxapp/edx-platform
~/edx-platform$ python /edx/app/edxapp/edx-platform/manage.py lms syncdb --migrate --settings=aws
sudo /edx/bin/supervisorctl restart edxapp:
Open URL /admin
on Browser.
Go to Home › Third_Party_Auth › Provider Configuration (OAuth)
and click Add Provider Configuration
Check off Enabled
checkbox
Add a name in the Name
input, ie. Auth0
Check off Skip Email Verification
checkbox
Choose Backend Name
: oa2-auth0
Input your Client ID
and Client Secret
In Other Settings
, paste this: {"SCOPE": ["email openid profile"]}
this makes sure we can fetch the whole profile from
Auth0 and your email address and other info will be properly populated in registration form