MCPcopy
hub / github.com/authlib/authlib

github.com/authlib/authlib @v1.7.2 sqlite

repository ↗ · DeepWiki ↗ · release v1.7.2 ↗
2,933 symbols 12,892 edges 327 files 720 documented · 25%
README

Authlib

Build Status PyPI version conda-forge version PyPI Downloads Code Coverage Maintainability Rating

The ultimate Python library in building OAuth and OpenID Connect servers. JWS, JWK, JWA, JWT are included.

Authlib is compatible with Python3.10+.

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:

Connect third party OAuth providers with Authlib built-in client integrations:

Build your own OAuth 1.0, OAuth 2.0, and OpenID Connect providers:

Useful Links

  1. Homepage: https://authlib.org/.
  2. Documentation: https://docs.authlib.org/.
  3. Purchase Commercial License: https://authlib.org/plans.
  4. Blog: https://blog.authlib.org/.
  5. Twitter: https://twitter.com/authlib.
  6. StackOverflow: https://stackoverflow.com/questions/tagged/authlib.
  7. Other Repositories: https://github.com/authlib.
  8. 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:

  1. BSD LICENSE
  2. 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.

Core symbols most depended-on inside this repo

post
called by 405
authlib/integrations/base_client/sync_app.py
get
called by 370
authlib/integrations/base_client/sync_app.py
get
called by 199
tests/flask/cache.py
import_key
called by 127
authlib/jose/rfc7518/oct_key.py
generate_key
called by 90
authlib/jose/rfc7518/ec_key.py
register
called by 86
authlib/integrations/flask_client/__init__.py
encode
called by 83
authlib/jose/rfc7519/jwt.py
read_file_path
called by 82
tests/util.py

Shape

Method 1,274
Function 1,263
Class 357
Route 39

Languages

Python100%

Modules by API surface

tests/flask/test_oauth2/test_end_session.py50 symbols
tests/jose/test_jwe.py48 symbols
tests/clients/test_requests/test_oauth2_session.py45 symbols
tests/clients/test_starlette/test_oauth_client.py38 symbols
authlib/jose/rfc7518/jwe_algs.py38 symbols
tests/flask/test_oauth1/oauth1_server.py37 symbols
tests/flask/test_oauth2/test_jwt_authorization_request.py36 symbols
tests/flask/test_oauth2/rfc9068/test_resource_server.py36 symbols
tests/clients/test_flask/test_oauth_client.py35 symbols
authlib/oauth2/rfc8414/models.py34 symbols
tests/flask/test_oauth2/test_client_configuration_endpoint.py33 symbols
authlib/oauth2/rfc6749/requests.py31 symbols

Dependencies from manifests, versioned

joserfc1.6.0 · 1×

For agents

$ claude mcp add authlib \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact