The ultimate Python library in building OAuth and OpenID Connect servers and clients.
Project description
The ultimate Python library in building OAuth and OpenID Connect servers. JWS, JWK, JWA, JWT are included.
Authlib is compatible with Python3.9+.
Migrations
Authlib will deprecate authlib.jose module, please read:
Sponsors
| If you want to quickly add secure token-based authentication to Python projects, feel free to check Auth0's Python SDK and free plan at auth0.com/overview. | |
| A blogging and podcast hosting platform with minimal design but powerful features. Host your blog and Podcast with Typlog.com. |
Fund Authlib to access additional features
Features
Generic, spec-compliant implementation to build clients and providers:
- The OAuth 1.0 Protocol
- The OAuth 2.0 Authorization Framework
- RFC6749: The OAuth 2.0 Authorization Framework
- RFC6750: The OAuth 2.0 Authorization Framework: Bearer Token Usage
- RFC7009: OAuth 2.0 Token Revocation
- RFC7523: JWT Profile for OAuth 2.0 Client Authentication and Authorization Grants
- RFC7591: OAuth 2.0 Dynamic Client Registration Protocol
- RFC7592: OAuth 2.0 Dynamic Client Registration Management Protocol
- RFC7636: Proof Key for Code Exchange by OAuth Public Clients
- RFC7662: OAuth 2.0 Token Introspection
- RFC8414: OAuth 2.0 Authorization Server Metadata
- RFC8628: OAuth 2.0 Device Authorization Grant
- RFC9068: JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens
- RFC9101: The OAuth 2.0 Authorization Framework: JWT-Secured Authorization Request (JAR)
- RFC9207: OAuth 2.0 Authorization Server Issuer Identification
- Javascript Object Signing and Encryption
- RFC7515: JSON Web Signature
- RFC7516: JSON Web Encryption
- RFC7517: JSON Web Key
- RFC7518: JSON Web Algorithms
- RFC7519: JSON Web Token
- RFC7638: JSON Web Key (JWK) Thumbprint
- RFC7797: JSON Web Signature (JWS) Unencoded Payload Option
- RFC8037: ECDH in JWS and JWE
- draft-madden-jose-ecdh-1pu-04: Public Key Authenticated Encryption for JOSE: ECDH-1PU
- OpenID Connect 1.0
- OpenID Connect Core 1.0
- OpenID Connect Discovery 1.0
- OpenID Connect Dynamic Client Registration 1.0
Connect third party OAuth providers with Authlib built-in client integrations:
Build your own OAuth 1.0, OAuth 2.0, and OpenID Connect providers:
- Flask
- Django
Useful Links
- Homepage: https://authlib.org/.
- Documentation: https://docs.authlib.org/.
- Purchase Commercial License: https://authlib.org/plans.
- Blog: https://blog.authlib.org/.
- Twitter: https://twitter.com/authlib.
- StackOverflow: https://stackoverflow.com/questions/tagged/authlib.
- Other Repositories: https://github.com/authlib.
- Subscribe Tidelift: https://tidelift.com/subscription/pkg/pypi-authlib.
Security Reporting
If you found security bugs, please do not send a public issue or patch. You can send me email at me@lepture.com. Attachment with patch is welcome. My PGP Key fingerprint is:
72F8 E895 A70C EBDF 4F2A DFE0 7E55 E3E0 118B 2B4C
Or, you can use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
License
Authlib offers two licenses:
- BSD LICENSE
- COMMERCIAL-LICENSE
Any project, open or closed source, can use the BSD license. If your company needs commercial support, you can purchase a commercial license at Authlib Plans. You can find more information at https://authlib.org/support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file authlib-1.6.7.tar.gz.
File metadata
- Download URL: authlib-1.6.7.tar.gz
- Upload date:
- Size: 164.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbf10100011d1e1b34048c9d120e83f13b35d69a826ae762b93d2fb5aafc337b
|
|
| MD5 |
af6b317d0d55af7cf84820e8d14e54f6
|
|
| BLAKE2b-256 |
49dced1681bf1339dd6ea1ce56136bad4baabc6f7ad466e375810702b0237047
|
Provenance
The following attestation bundles were made for authlib-1.6.7.tar.gz:
Publisher:
pypi.yml on authlib/authlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
authlib-1.6.7.tar.gz -
Subject digest:
dbf10100011d1e1b34048c9d120e83f13b35d69a826ae762b93d2fb5aafc337b - Sigstore transparency entry: 924290182
- Sigstore integration time:
-
Permalink:
authlib/authlib@38e872a3f5b97d2658507acc8762a4e18adaa50e -
Branch / Tag:
refs/tags/v1.6.7 - Owner: https://github.com/authlib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@38e872a3f5b97d2658507acc8762a4e18adaa50e -
Trigger Event:
push
-
Statement type:
File details
Details for the file authlib-1.6.7-py2.py3-none-any.whl.
File metadata
- Download URL: authlib-1.6.7-py2.py3-none-any.whl
- Upload date:
- Size: 244.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c637340d9a02789d2efa1d003a7437d10d3e565237bcb5fcbc6c134c7b95bab0
|
|
| MD5 |
94766572518d0a6d062f63f519a926a1
|
|
| BLAKE2b-256 |
f8003ed12264094ec91f534fae429945efbaa9f8c666f3aa7061cc3b2a26a0cd
|
Provenance
The following attestation bundles were made for authlib-1.6.7-py2.py3-none-any.whl:
Publisher:
pypi.yml on authlib/authlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
authlib-1.6.7-py2.py3-none-any.whl -
Subject digest:
c637340d9a02789d2efa1d003a7437d10d3e565237bcb5fcbc6c134c7b95bab0 - Sigstore transparency entry: 924290186
- Sigstore integration time:
-
Permalink:
authlib/authlib@38e872a3f5b97d2658507acc8762a4e18adaa50e -
Branch / Tag:
refs/tags/v1.6.7 - Owner: https://github.com/authlib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@38e872a3f5b97d2658507acc8762a4e18adaa50e -
Trigger Event:
push
-
Statement type: