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 12 Rust Authorization Projects

  • Ockam

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

  • Project mention: Tunnelmole, an ngrok alternative (open source) | news.ycombinator.com | 2024-03-21

    disclosure: I work at Ockam.

    The Portals for Mac app is an example of the type of thing you could build using the open source stack of protocols. The README (linked by parent) links out to all of the relevant parts of the protocol documentation to explain how these work together. The NAT Traversal (https://github.com/build-trust/ockam/blob/develop/examples/a...) part of the README is probably the best explanation of why the free relay you get via Ockam Orchestrator is a useful part of this demo.

    As for why would anyone trust this: The protocols are designed so you absolutely don't have to trust the relay. Trust is pushed out to the edges that you control and so you're not susceptible to a MITM attack if something like a relay is compromised. The protocol design for all of this is open and documented, and was independently audited by (IMO) some of the best in the business, Trail of Bits: https://docs.ockam.io/reference/protocols.

  • oso

    Oso is a batteries-included framework for building authorization in your application.

  • Project mention: Who's hiring developer advocates? (October 2023) | dev.to | 2023-10-02

    Link to GitHub -->

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • casbin-rs

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

  • inspektor

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

  • yup-oauth2

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

  • biscuit-rust

    Rust implementation of the Biscuit authorization token

  • Project mention: Authorization is still a nightmare for engineers | news.ycombinator.com | 2024-04-16

    > We have a post on this coming soon! The short version is that Polar is a logic language based on Prolog/Datalog/miniKanren. And logic languages are a particularly good fit for representing the branching conditional logic you often see in authorization configurations.

    Ha, I've been playing around with Biscuits (https://www.biscuitsec.org/) and was writing up a blog post on using them in a git forge. When I saw the Polar data units described as "facts" and read your end to end example (https://www.osohq.com/docs/tutorials/end-to-end-example) I thought "Oh this looks very similar". I will say - I do like how Polar seems to type stuff and provide some concepts that Biscuits force you to build out on your own, that's pretty neat.

    What is the proof of identity in Polar? Is it something like a token in Biscuits? I'm curious if you can do things like add caveats to reduce what the token is capable of as it gets handed off to different systems. I consider that one of the "killer use cases" of biscuits.

  • protect-endpoints

    Authorization extension for popular web-frameworks to protect your endpoints

  • Project mention: Significant update within the `*-grants` ecosystem: crates to protect endpoints in widely used web frameworks. | /r/rust | 2023-12-01
  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • rauthy

    OpenID Connect Single Sign-On Identity & Access Management

  • Project mention: Rauthy OIDC v0.19 — Better support for Solid and Matrix | /r/SelfhostingHub | 2023-11-18
  • auth-rs

    Authentication and authorization service, written in Rust

  • Project mention: Feedback on authorization and authentication API using Actix web | /r/rust | 2023-08-18
  • fga-rs

    authorization/permission service, inspired by Google Zanzibar

  • Project mention: Google Zanzibar: Rust Implementation(wip) | news.ycombinator.com | 2024-03-27
  • tower-biscuit-auth

    Integrating Biscuit authentication with the Tower ecosystem.

  • authzen

    A framework for easily integrating authorization into backend services.

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 related posts

Index

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

Project Stars
1 Ockam 4,347
2 oso 3,403
3 casbin-rs 788
4 inspektor 278
5 yup-oauth2 204
6 biscuit-rust 201
7 protect-endpoints 169
8 rauthy 165
9 auth-rs 8
10 fga-rs 4
11 tower-biscuit-auth 3
12 authzen 2

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