Rust Authentication

Open-source Rust projects categorized as Authentication

Top 23 Rust Authentication Projects

  • Ockam

    Orchestrate end-to-end encryption, cryptographic identities, mutual authentication, and authorization policies between distributed applications – at massive scale. Use Ockam to build secure-by-design applications that can Trust Data-in-Motion.

    Project mention: Create End-to-End Channels in Rust with Ockam Routing | | 2023-08-04

    Ockam is a suite of programming libraries, command line tools, and managed cloud services to orchestrate end-to-end encryption, mutual authentication, key management, credential management, and authorization policy enforcement — all at massive scale. Ockam's end-to-end secure channels guarantee authenticity, integrity, and confidentiality of all data-in-motion at the application layer.

  • lldap

    Light LDAP implementation

    Project mention: Lldap Release 0.5.0 | | 2023-09-14
  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • kanidm

    Kanidm: A simple, secure and fast identity management platform

    Project mention: Identity Management Solutins | /r/openSUSE | 2023-05-25

    Check this: Maybe not production ready, but looks very promising

  • rust-jwt

    JWT lib in rust

  • sudo_pair

    Plugin for sudo that requires another human to approve and monitor privileged sudo sessions

  • internet-identity

    Internet Identity, a blockchain authentication system for the Internet Computer

    Project mention: How do I create a backup login for my NNS? I mainly use a YubiKey. | /r/dfinity | 2023-03-08

    You can visit and select backup. From there you can either choose a recovery phrase or a yubikey back up method. With that you can recover your account in case you lose access on your primary device. It is also recommended that you add multiple authorized login devices in case you lose one of them.

  • openidconnect-rs

    OpenID Connect Library for Rust

    Project mention: OAuth/Open ID server capabilities | /r/rust | 2023-06-04
  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • frank_jwt

    JSON Web Token implementation in Rust.

    Project mention: Bun, Hono, Vite, TailwindCSS: An amazing combination has just been revealed! | | 2023-09-10

    Take note from the above code on how we should create base64 string based on this MDN guide. Later we can validate manually if our jwt and the secretBytes is correct by pasting the token and secret to

  • axum-login

    🪪 Session-based user authentication for Axum.

    Project mention: axum-login v0.4.0 released | /r/rust | 2022-11-28

    You might find the oauth example helpful:

  • biscuit-rust

    Rust implementation of the Biscuit authorization token

    Project mention: Biscuit tokens 3.0 release! Decentralized authorization in Rust, wasm and a lot of other platforms | /r/rust | 2023-04-04

    a C compatible library thanks to cargo-c

  • cotp

    Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality.

    Project mention: termotp: An OTP generator for your terminal with fuzzy finding | /r/commandline | 2023-02-10

    Does this do something different from

  • firestore-db-and-auth-rs

    Easy Rust access to your Google Firestore DB via service account or OAuth impersonated Google Firebase Auth credentials

  • nforwardauth

    Simple and minimalist forward auth service intended for use with reverse proxies (Traefik, Caddy, nginx, etc)

    Project mention: nforwardauth - simple and minimalist forward auth service intended for use with reverse proxies (Traefik, Caddy, etc). added basic auth and logout support | /r/SelfhostingHub | 2023-08-04
  • pam

    Safe Rust API to the Linux Pluggable Authentication Modules (PAM) (by 1wilkens)

    Project mention: runas: a simple sudo / doas alternative written in rust | /r/rust | 2023-01-19

    pam provides a "safe" interface to the PAM API. Although, it is far from complete and from my experience has some problems with Ubuntu-based systems.

  • rocket_auth

    An implementation for an authentication API for Rocket applications.

    Project mention: Authentication for Rocket+Diesel application | /r/rust | 2022-10-21

    The basic CRUD operations are done, however I'm still missing the users and authentication logic. Since I don't want to build it form scratch if possible, I found rocket_auth which seems perfect, except that it does not support diesel.

  • sqlx-adapter

    Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs

  • axum-casbin

    Axum authorization middleware based on Casbin

    Project mention: Backend API recommendations | /r/rust | 2023-05-29

    i haven't done rbac with rust but stuff like this looks promising: (seems you'd use it in conjunction with the authorization tower middleware)

  • srp6-rs

    A safe implementation of the secure remote password authentication and key-exchange protocol (SRP and SRP6a)

  • pam-sys

    Rust FFI bindings to the Linux Pluggable Authentication Modules (PAM)

    Project mention: runas: a simple sudo / doas alternative written in rust | /r/rust | 2023-01-19

    [pam-sys][] provides an FFI interface to libpam. This is way more proposing, but you have to do everything yourself. You will still have the Ubuntu problems, but you can deal with them now at least.

  • axum-shuttle-postgres-authentication-demo

    Full stack authenticated site built in Rust with Axum, Postgres and Shuttle

  • forbidden

    An auth system/library for Rust applications

  • 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
  • xboxlive-auth

    A program to retrieve a Minecraft account's access token based on the new Microsoft authentication scheme.

  • Revelo Payroll

    Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.

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). The latest post mention was on 2023-09-14.

Rust Authentication related posts


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

Project Stars
1 Ockam 3,583
2 lldap 2,848
3 kanidm 1,658
4 rust-jwt 1,342
5 sudo_pair 1,213
6 internet-identity 316
7 openidconnect-rs 267
8 frank_jwt 249
9 axum-login 217
10 biscuit-rust 178
11 cotp 117
12 firestore-db-and-auth-rs 91
13 nforwardauth 83
14 pam 72
15 rocket_auth 70
16 sqlx-adapter 35
17 axum-casbin 22
18 srp6-rs 13
19 pam-sys 13
20 axum-shuttle-postgres-authentication-demo 12
21 forbidden 10
22 auth-rs 4
23 xboxlive-auth 4
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at