Flask OAuth 2.0 Server¶
This section is not a step by step guide on how to create an OAuth 2.0 server in Flask. Instead, we will learn how the Flask implementation works, and some technical details in an OAuth 2.0 provider.
If you need a quick example, here are the official tutorial guide and examples on GitHub:
- Example of OAuth 2.0 server
- Example of OpenID Connect server (not ready)
At the very beginning, we need to have some basic understanding of the OAuth 2.0 specification. Read RFC6749: The OAuth 2.0 Authorization Framework at first.
If you are developing on your localhost, remember to set the environment variable:
Looking for OAuth 2 client? Check out Flask OAuth Client.
- Authorization Server
- Register Grants
- Token Endpoints
- Resource Server
- Flask OpenID Connect 1.0