The ultimate Python library in building OAuth and OpenID Connect servers.

GitHub Docs


Generic RFCs

Authlib offers generic implementations of RFCs, including:

  • RFC5849: The OAuth 1.0 Protocol
  • RFC6749: The OAuth 2.0 Authorization Framework
  • RFC7519: JSON Web Token
  • OIDC: OpenID Connect 1.0
  • More details in documentation.

Framework Integrations

Various built-in high-level framework integrations for both clients and servers, aiming to create a seamless experience.

  • Requests OAuth 1.0/2.0 Sessions
  • Flask OAuth 1.0/2.0 Clients
  • Django OAuth 1.0/2.0 Clients
  • Flask OAuth 1.0/2.0 Providers
  • Flask OpenID Connect Server
  • Find more in documentation.


Supporting a wide range of social network service connections, powered by Loginpass:

  • Google with OpenID Connect and Service Account.
  • Twitter OAuth 1 Connect
  • Dropbox, Reddit, GitHub, Facebook etc..
  • Gitlab and its enterprise OAuth.
  • StackOverflow and its related services.
  • Find more on GitHub.



Authlib is built from low level of specifications to high level of framework integrations.

Read Why


Security matters in Authlib. We have a section on security process at the very first begin.

Read How

Authlib: Python Authentication

Now, start by reading the documentation, following Authlib Twitter and giving a star on GitHub.

Hsiaoming Ltd
Copyright © 2018