OAuth oauth.net

OAuth Libraries for Python

Here you'll find the best Python libraries for building OAuth clients and servers.

Client Libraries

Server Libraries

  • Django OAuth Toolkit (DOT) is an OAuth2 Provider for Django built upon oauthlib
  • Authlib has an OAuth2 and OpenID Connect Provider, generic and Flask.
  • Bottle-OAuthlib is the simplest library to build OAuth2/OIDC Provider on top of Bottle and oauthlib
  • FastAPI is a modern, fast (high-performance), web framework for building APIs based on standard Python type hints. It includes support for OAuth2, integrated with OpenAPI
  • aioauth Asynchronous OAuth 2.0 library
  • Authplane python-sdk: Protect MCP servers and OAuth 2.1 resource servers, with MCP and FastMCP adapters

If you would like to add a library, you can edit this page.