# Django OAuth 2.0 Server

New in version v0.12.

This section is not a step by step guide on how to create an OAuth 2.0 provider in Django. Instead, we will learn how the Django implementation works, and some technical details in an OAuth 2.0 provider.

At the very beginning, we need to have some basic understanding of the OAuth 2.0.

Important

If you are developing on your localhost, remember to set the environment variable:

    export AUTHLIB_INSECURE_TRANSPORT=true

Looking for Django OAuth 2.0 client? Check out Django OAuth Client.

- Authorization Server
  - Resource Owner
  - Client
  - Token
  - Server
- Register Grants
  - Authorization Code Grant
  - Implicit Grant
  - Resource Owner Password Credentials Grant
  - Client Credentials Grant
  - Refresh Token Grant
  - Custom Grant Types
  - Grant Extensions
- Token Endpoints
  - Revocation Endpoint
  - Introspection Endpoint
- Resource Server
  - Multiple Scopes
  - Optional `require_oauth`
- Django OIDC Provider
  - Understand JWT
  - Code Flow
  - Implicit Flow
  - Hybrid Flow
- API References of Django OAuth 2.0 Server