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

GitHub Docs


Generic RFCs

Authlib offers generic implementations of RFCs, including:

Framework Integrations

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

  • Flask OAuth 1.0/2.0 clients and providers
  • Django OAuth 1.0/2.0 clients and providers
  • Requests OAuth 1.0/2.0 sessions
  • HTTPX OAuth 1.0/2.0 clients
  • Starlette OAuth 1.0/2.0 clients
  • FastAPI OAuth 1.0/2.0 clients
  • 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

Get Authlib Updates

No spam, ever. We will only send you emails about Authlib.

Hsiaoming Ltd
Copyright © 2017