Python JWT

Open-source Python projects categorized as JWT

JSON Web Token is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. The claims in a JWT are encoded as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure or as the plaintext of a JSON Web Encryption (JWE) structure, enabling the claims to be digitally signed or integrity protected with a Message Authentication Code (MAC) and/or encrypted.

Top 23 Python JWT Projects

  1. PyJWT

    JSON Web Token implementation in Python

    Project mention: JWT verification failing? The error map that names the cause | dev.to | 2026-10-28

    Sourcing: every message and behavior above was captured by running PyJWT 2.15.1 on Python 3.11, including the key-loading cases above. Claim rules come from RFC 7519, and option names from the PyJWT docs.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. authlib

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

  4. mcp-context-forge

    An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins.

    Project mention: 5 Best MCP Gateways in 2026: Bifrost, IBM ContextForge, Obot, Docker and Microsoft Compared | dev.to | 2026-11-02

    ContextForge is IBM’s open-source registry and proxy, licensed Apache 2.0 and written mostly in Python. Its pitch is breadth: it federates MCP servers, A2A agents and plain REST or gRPC services behind one endpoint, and can wrap a non-MCP API as a virtual MCP server.

  5. fastapi-react

    🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker

  6. dj-rest-auth

    Authentication for Django Rest Framework

  7. python-jose

    A JOSE implementation in Python

    Project mention: python-jose CVE-2026-120459 lets an empty HMAC key validate forged tokens | dev.to | 2026-11-05

    python-jose project

  8. flask-jwt-extended

    An open source Flask extension that provides JWT support (with batteries included)!

  9. authx

    Ready-to-use and customizable Authentications and Oauth2 management for FastAPI ✨

  10. FastAPI-Backend-Template

    A backend project template with FastAPI, PostgreSQL with asynchronous SQLAlchemy 2.0, Alembic for asynchronous database migration, and Docker. (by Aeternalis-Ingenium)

  11. cookiecutter-flask-restful

    Flask cookiecutter template for builing APIs with flask-restful, including JWT auth, cli, tests, swagger, docker and more

  12. easyauth

    Create a centralized Authentication and Authorization token server. Easily secure FastAPI endpoints based on Users, Groups, Roles or Permissions with very little database usage.

  13. jwt-pwn

    Security Testing Scripts for JWT

  14. django-auth-adfs

    A Django authentication backend for Microsoft ADFS and AzureAD

  15. jwtXploiter

    A tool to test security of json web token

  16. Sanic JWT

    Authentication, JWT, and permission scoping for Sanic

  17. video-membership

    Create a Video Membership app using FastAPI & NoSQL

  18. sanic-security

    An async security library for the Sanic framework.

  19. python-sdk

    Python library used to integrate with Descope (by descope)

    Project mention: Next.js vs Remix: What's the Difference? | dev.to | 2026-05-14

    Descope is a service that offers a unique solution through its no-code/low-code visual workflows, allowing developers to quickly create and customize authentication flows without writing extensive code or disrupting the app's architecture. With a strong focus on passwordless authentication—including methods like magic links, one-time passwords (OTPs), and passkeys—Descope not only simplifies the implementation of secure user management but also enhances user experience. Check out our Next.js and Remix resources to get started.

  20. Fastapi-Template

    🚀 Production-ready FastAPI template with JWT authentication, PostgreSQL integration, async support, clean architecture, and modern development tools. (by eslam5464)

    Project mention: FastAPI Template | dev.to | 2025-11-10

    I’m excited to share my new open-source project: Fastapi-Template

  21. haze

    Lightning-fast Magic Links. 🍵 Beginner-friendly. Easy to Setup. 🔥 (by itsmeadarsh2008)

  22. cognito-api

    An authentication API based on AWS Cognito

  23. examples-api-access-and-token-introspection

    Python examples for securing an API and invoking it as a service user

  24. attach-gateway

    Drop-in OIDC & Google A2A auth + Weaviate memory for Ollama, vLLM and any local LLM server.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python JWT discussion

Log in or Post with

Python JWT related posts

  • python-jose CVE-2026-120459 lets an empty HMAC key validate forged tokens

    1 project | dev.to | 5 Nov 2026
  • JWT verification failing? The error map that names the cause

    1 project | dev.to | 28 Oct 2026
  • Add Authentication and SSO to Your Panel App

    2 projects | dev.to | 22 Apr 2026
  • Add Authentication and MFA to Unreal Engine with Descope

    2 projects | dev.to | 8 Apr 2026
  • Show HN: WSE Rust-powered WebSocket engine for Python 2.1M del/SEC fan-out

    2 projects | news.ycombinator.com | 24 Feb 2026
  • Show HN: I made the easiest authentication library

    1 project | news.ycombinator.com | 18 Mar 2025
  • Can someone help me understand CSRF security? (context inside)

    1 project | /r/django | 25 Sep 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 7 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source JWT projects in Python? This list will help you:

# Project Stars
1 PyJWT 5,722
2 authlib 5,445
3 mcp-context-forge 4,759
4 fastapi-react 2,591
5 dj-rest-auth 1,878
6 python-jose 1,759
7 flask-jwt-extended 1,578
8 authx 1,203
9 FastAPI-Backend-Template 886
10 cookiecutter-flask-restful 811
11 easyauth 621
12 jwt-pwn 332
13 django-auth-adfs 299
14 jwtXploiter 290
15 Sanic JWT 246
16 video-membership 106
17 sanic-security 100
18 python-sdk 77
19 Fastapi-Template 71
20 haze 27
21 cognito-api 20
22 examples-api-access-and-token-introspection 18
23 attach-gateway 18

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Python is
the 1st most popular programming language
based on number of references?