Skip to content

Ipv6Python/appid-django-webapp-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running the Sample

  1. Run pip3 install -r requirements.txt

  2. 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
  3. Run python manage.py migrate

  4. Add the redirect url to your App Id instance. http://localhost:8000\*

  5. Finally run python3 manage.py runserver

  6. Sample app runs on http://localhost:8000

  7. Once you login. You can see view the access token on the homepage

Implementation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.4%
  • HTML 17.6%