Question: how to do oauth in django?
Answer: Tutorials. Part 1 - Make a Provider in a Minute. Scenario. Start Your App. Create an OAuth2 Client Application. Test Your Authorization Server. Build an Authorization Link for Your Users. Authorize the Application. Exchange the token. Refresh the token. Part 2 - protect your APIs. Django Rest Framework.