Python Authorization

Open-source Python projects categorized as Authorization

Missing quite a few other open source projects in this space like SuperTokens (https://supertokens.com) and Keycloak.

Top 23 Python Authorization Projects

Authorization
  1. fastapi_mcp

    Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

    Project mention: The current MCP ecosystem for enterprises | dev.to | 2025-08-13

    FastAPI MCP - Expose your FastAPI endpoints as MCP tools with auth. 🆓 🔑

  2. SaaSHub

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

    SaaSHub logo
  3. OPAL

    Policy and data administration, distribution, and real-time updates on top of Policy Agents (OPA, Cedar, ...) (by permitio)

  4. OAuthLib

    A generic, spec-compliant, thorough implementation of the OAuth request-signing logic

  5. supabase-py

    Python Client for Supabase. Query Postgres from Flask, Django, FastAPI. Python user authentication, security policies, edge functions, file storage, and realtime data streaming. Good first issue.

  6. django-rules

    Awesome Django authorization, without the database

  7. casbin-pycasbin

    An authorization library that supports access control models like ACL, RBAC, ABAC in Python

  8. KubiScan

    A tool to scan Kubernetes cluster for risky permissions

  9. authx

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

  10. Autorize

    Automatic authorization enforcement detection extension for burp suite written in Jython developed by Barak Tawily in order to ease application security people work and allow them perform an automatic authorization tests

  11. Authomatic

    Simple yet powerful authorization / authentication client library for Python web applications.

  12. Python Social

    Python Social Auth - Core

  13. django-rest-framework-passwordless

    Passwordless Auth for Django REST Framework

  14. 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.

  15. access

    Access, a centralized portal for employees to transparently discover, request, and manage their access for all internal systems needed to do their jobs (by discord)

  16. drf-social-oauth2

    drf-social-oauth2 makes it easy to integrate Django social authentication with major OAuth2 providers, i.e., Facebook, Twitter, Google, etc.

  17. route-detect

    Find authentication (authn) and authorization (authz) security bugs in web application routes.

  18. simple-auth0-fastapi-react-app

    A simple application for authentication, authorization and user management based on Auth0. 🐍 Python ⚡ FastAPI + React.

  19. raider

    OWASP Raider: a novel framework for manipulating the HTTP processes of persistent sessions (by OWASP)

  20. sanic-security

    An async security library for the Sanic framework.

  21. eunomia

    Eunomia is the open-source authorization layer for AI Agents

  22. deny

    Python authorization library

  23. examples

    A collection of examples for SpiceDB users (by authzed)

  24. EdgeAuth-Token-Python

    Akamai Authorization Token for Python

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 Authorization discussion

Log in or Post with

Python Authorization related posts

  • Getting CLI authentication right: the complete guide to all 5 methods

    2 projects | dev.to | 6 Apr 2026
  • The creator of Claude Code's, Claude setup

    8 projects | news.ycombinator.com | 6 Jan 2026
  • The Art of API Design: Lessons Learned in Building VividBlog

    1 project | dev.to | 8 Jun 2024
  • How to Model Cloud-Native Authorization

    1 project | dev.to | 13 May 2024
  • 45 Questions to Ask Yourself Before Modeling Authorization

    1 project | dev.to | 9 May 2024
  • OPA, Cedar, OpenFGA: Why are Policy Languages Trending Right Now?

    1 project | dev.to | 2 May 2024
  • Top 5 Access Control Features You Should Implement in 2024

    2 projects | dev.to | 27 Dec 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 13 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 fastapi_mcp 11,911
2 OPAL 5,463
3 OAuthLib 2,970
4 supabase-py 2,519
5 django-rules 1,976
6 casbin-pycasbin 1,738
7 KubiScan 1,424
8 authx 1,177
9 Autorize 1,162
10 Authomatic 1,054
11 Python Social 915
12 django-rest-framework-passwordless 736
13 easyauth 621
14 access 460
15 drf-social-oauth2 290
16 route-detect 280
17 simple-auth0-fastapi-react-app 110
18 raider 101
19 sanic-security 99
20 eunomia 97
21 deny 85
22 examples 61
23 EdgeAuth-Token-Python 34

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?