This is an example, how to implement standard basic oauth. With out any added complexity through the specific app it gets build into.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
668 B

  1. # Wikimedia OAuth2 Django Demo
  2. A minimal prototype showing how to authenticate wikimedia
  3. users with OAuth2
  4. ## Quick Start
  5. 1. Create virtual environment
  6. ```bash
  7. virtualenv --python=python3.9 venv
  8. ```
  9. 2. Install requirements
  10. ```bash
  11. pip install -r requirements.txt
  12. ```
  13. 3. Run the server
  14. ```bash
  15. python manage.py migrate
  16. python manage.py runserver
  17. ```
  18. ## Behind the scene
  19. The OAuth2 configuration is located at settings.py
  20. The default session backend is sqlite3.
  21. The base for this prototype was done by songrgg, who published
  22. his code on Microsoft's Github. His Blog Post you can find here:
  23. https://songrgg.github.io/programming/django-oauth-client-setup