-
Run
pip3 install -r requirements.txt
-
Configure App ID to work with the sample. Add the oauthServerUrl, client_id, and secret obtained from App ID to the
src/store/settings.py
file- oauthServerUrl to
SOCIAL_AUTH_APPID_OAUTH_SERVER_URL
- client_id to
SOCIAL_AUTH_APPID_KEY
- secret to
SOCIAL_AUTH_APPID_SECRET
- oauthServerUrl to
-
Run
python manage.py migrate
-
Add the redirect url to your App Id instance.
http://localhost:8000\*
-
Finally run
python3 manage.py runserver
-
Sample app runs on http://localhost:8000
-
Once you login. You can see view the access token on the homepage
Sample uses the python-social-auth library.
Check out the webapp/authentication/appid.py
module for AppID integration with the library. It basically extends the
OpenIDConnect module and implements a few things required for AppID