[STAR-2807] feat: Oauth demo.
Created by: Kelketek
Description
This PR has the demo code for the blog post on using the LMS platform as an authentication provider. That link won't work until the post is actually published, so check the link in the ticket for backend access to it.
https://tasks.opencraft.com/browse/STAR-2807
Testing instructions
- Install the requirements
- follow the directions in the blogpost to set up on the LMS side
- Update the settings.py file with your client_id and secret
./manage.py runserver
- Visit the URL given in your terminal (should be http://127.0.0.1:8000/)
- Authorize the app
- See the username in a JSON object rendered!