This is an example, how to implement standard basic oauth. With out any added complexity through the specific app it gets build into.
oauth_demo | ||
.gitignore | ||
LICENSE | ||
manage.py | ||
README.md | ||
requirements.txt |
Wikimedia OAuth2 Django Demo
A minimal prototype showing how to authenticate wikimedia users with OAuth2
Quick Start
- Create virtual environment
virtualenv --python=python3.9 venv
- Install requirements
pip install -r requirements.txt
- Run the server
python manage.py migrate
python manage.py runserver
Behind the scene
The OAuth2 configuration is located at settings.py
The default session backend is sqlite3.
Credits to songrgg
The base for this prototype was done by songrgg, who published his code on Microsoft's Github. His Blog Post you can find here: https://songrgg.github.io/programming/django-oauth-client-setup