This is an example, how to implement standard basic oauth. With out any added complexity through the specific app it gets build into.
Find a file
2023-10-22 17:46:10 +00:00
oauth_demo full example with one little change in code to make it work, some changes in the settings file 2023-10-22 17:40:45 +00:00
.gitignore full example with one little change in code to make it work, some changes in the settings file 2023-10-22 17:40:45 +00:00
LICENSE full example with one little change in code to make it work, some changes in the settings file 2023-10-22 17:40:45 +00:00
manage.py full example with one little change in code to make it work, some changes in the settings file 2023-10-22 17:40:45 +00:00
README.md added header for credits part in README.md 2023-10-22 17:46:10 +00:00
requirements.txt full example with one little change in code to make it work, some changes in the settings file 2023-10-22 17:40:45 +00:00

Wikimedia OAuth2 Django Demo

A minimal prototype showing how to authenticate wikimedia users with OAuth2

Quick Start

  1. Create virtual environment
virtualenv --python=python3.9 venv
  1. Install requirements
pip install -r requirements.txt
  1. 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