Rust Authorization

Open-source Rust projects categorized as Authorization

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

Top 18 Rust Authorization Projects

Authorization
  1. Ockam

    Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications – at massive scale.

  2. SaaSHub

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

    SaaSHub logo
  3. oso

    Deprecated: See README

  4. casbin-rs

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

  5. axum-login

    🪪 User identification, authentication, and authorization for Axum.

  6. exograph

    Build production-ready backends in minutes

  7. inspektor

    Inspektor is a protocol-aware proxy that is used to enforce access policies👮

  8. biscuit-rust

    Rust implementation of the Biscuit authorization token

    Project mention: Ask HN: What Are You Working On? (September 2025) | news.ycombinator.com | 2025-09-29

    biscuit-based identity and authorization

    I’m working on https://www.hessra.net/, an identity + authorization service built around [Biscuits](https://www.biscuitsec.org/) instead of JWTs. The goal is to decompose auth primitives so they’re easier to use in service-to-service cases, while also showing off what Biscuit tokens make possible.

    JWTs feel like problems waiting to happen. I think biscuits give stronger guarantees and are harder to get wrong.

    One piece I’ve shipped is an identity token that can be delegated offline. For example, “company:alice” can delegate to “company:alice:agent,” and that token can then be used to request an authorization token. This makes for a neat API key model: you can issue a simple opaque identity token to your customer (e.g. “customer123”) without having to maintain a DB of hashes/expirations, since those are encoded into the token. Later, you can upgrade security by exchanging the identity token for an authorization token, or let customers delegate access (e.g. “customer123:marketing”).

    I’ve also been experimenting with higher-order authorization flows:

  9. yup-oauth2

    An oauth2 client implementation providing the Device, Installed, Service Account, and several more flows.

  10. keyhive

    🗝️🐝✨ Rust workspace for Keyhive and related crates

  11. protect-endpoints

    Authorization extension for popular web-frameworks to protect your endpoints

  12. trusted-remote-execution

    Sandboxed Rhai script execution engine with Cedar policy authorization for every system operation.

    Project mention: Rex is a secure script execution engine that uses Cedar policies | news.ycombinator.com | 2026-05-09
  13. auth-rs

    Authentication and authorization service, written in Rust

  14. fga-rs

    authorization/permission service, inspired by Google Zanzibar

  15. authzen

    A framework for easily integrating authorization into backend services.

  16. tower-biscuit-auth

    Integrating Biscuit authentication with the Tower ecosystem.

  17. casbin-rust-yaml-adapter

    YAML Adapter for Casbin-RS

  18. oath-protocol

    Open protocol for cryptographically verifiable human intent — AI agent authorization, local-first, offline-capable, no central authority.

    Project mention: Show HN: Oath – prove a human authorized each action before your AI agent acts | news.ycombinator.com | 2026-03-03
  19. actra

    Actra - control what runs before it runs, controls what actions are allowed before they execute. Evaluate policies across APIs, workflows and AI agents in real time. (by getactra)

    Project mention: The Claude Code Leak Is a Warning: AI Infrastructure Is Outpacing Control | dev.to | 2026-04-05

    Learn more: https://actra.dev

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

Rust Authorization discussion

Log in or Post with

Rust Authorization related posts

  • Show HN: Write SaaS apps where users control where their data is stored

    2 projects | news.ycombinator.com | 16 Jun 2026
  • Authorization is still a nightmare for engineers

    6 projects | news.ycombinator.com | 16 Apr 2024
  • Biscuit Authorization

    4 projects | news.ycombinator.com | 13 Dec 2023
  • Biscuit – an authorization token with offline attenuation

    1 project | news.ycombinator.com | 30 Oct 2023
  • Biscuit tokens 3.0 release! Decentralized authorization in Rust, wasm and a lot of other platforms

    2 projects | /r/rust | 4 Apr 2023
  • Show HN: Biscuit Security Authorization

    1 project | news.ycombinator.com | 28 Mar 2023
  • What's everyone working on this week (10/2023)?

    11 projects | /r/rust | 6 Mar 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Aug 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 Rust? This list will help you:

# Project Stars
1 Ockam 4,631
2 oso 3,498
3 casbin-rs 1,130
4 axum-login 1,017
5 exograph 350
6 inspektor 285
7 biscuit-rust 244
8 yup-oauth2 242
9 keyhive 238
10 protect-endpoints 231
11 trusted-remote-execution 62
12 auth-rs 19
13 fga-rs 15
14 authzen 6
15 tower-biscuit-auth 3
16 casbin-rust-yaml-adapter 2
17 oath-protocol 2
18 actra 2

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

Did you know that Rust is
the 3rd most popular programming language
based on number of references?