Rust Authentication

Open-source Rust projects categorized as Authentication

Top 23 Rust Authentication Projects

Authentication
  1. lldap

    Light LDAP implementation

  2. AppSignal

    AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.

    AppSignal logo
  3. trailbase

    An open, sub-millisecond, single-executable Firebase alternative with type-safe APIs, built-in WebAssembly runtime, realtime subscriptions, auth, MCP and admin UI built on Rust, SQLite (PG) & Wasmtime.

    Project mention: Trailbase: Fast, single-executable, open app platform built on Rust and SQLite | news.ycombinator.com | 2025-12-16
  4. kanidm

    Kanidm: A simple, secure, and fast identity management platform

  5. Ockam

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

  6. defguard

    Zero-Trust access management with true WireGuard® 2FA/MFA

  7. GlobalProtect-openconnect

    A GlobalProtect VPN client for Linux, written in Rust, based on OpenConnect and Tauri, supports SSO with MFA, YubiKey, and client certificate authentication, etc.

  8. rust-jwt

    JWT lib in rust

  9. SaaSHub

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

    SaaSHub logo
  10. rauthy

    Single Sign-On Identity & Access Management via OpenID Connect, OAuth 2, PAM

  11. sudo_pair

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

  12. axum-login

    🪪 User identification, authentication, and authorization for Axum.

  13. openidconnect-rs

    OpenID Connect Library for Rust

  14. internet-identity

    Internet Identity, the most prominent authentication system for modern web apps

  15. gaze

    Facial authentication for Linux (by GunduLabs)

    Project mention: Show HN: Gaze – Facial Authentication for Linux | news.ycombinator.com | 2026-08-06
  16. torii-rs

    Torii is a powerful authentication framework for Rust applications that gives you complete control over your users' data.

  17. cotp

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

  18. rust-jwt-simple

    A secure, standard-conformant, easy to use JWT implementation for Rust.

    Project mention: Show HN: PidgeIoT – open-source IoT/Embedded device management for all (free*) | news.ycombinator.com | 2026-07-28

    And now for some answers to questions I expect

    - Q: Is it self-hostable?

    - A: Well yes, but actually no. You can self-host Ory Kratos and PG. The core is deployable to your own Cloudflare account, but can't be run on bare metal (well technically it could, but you shouldn't). I would like to make a fully self-hostable version in the future, but that's low on the priority list right now.

    - Q: Why not use JWTs for device authentication?

    - A: 1. JWTs are a poor design; See: https://github.com/jedisct1/rust-jwt-simple#why-yet-another-... 2. JWTs are stateless tokens that are valid for their lifetime. That makes revoking them a pain; See: https://stackoverflow.com/a/40385939

    - Q: AGPL in my firmware!? Isn't that going to infect my firmware and make it yours?

    - A: No, AGPL binds people modifying/serving PidgeIoT itself, and the device talks over a documented HTTP protocol; your firmware is yours.

    - Q: Have you heard of ThingsBoard?

    - A: I have heard of ThingsBoard, I even tried it out! It's good software and I hope to meet their functionality in the future. With that said...

    I feel it has a severe lack of simplicity and a high barrier to entry. Somewhat similar to AWS, ThingsBoard is a product family with per-product licensing. I want one coherent service. Not a tangled mess that requires a degree to set up (exaggeration, but you get my point).

    Easy to use, easy to scale, one product, one price, open protocol, etc, etc.

    Just one accessible service.

    I also plan on enabling Cloudflare's Workers for Platforms which gives users their own data-processing workers. That's pretty much synonymous to ThingsBoard's rule engine, without the fragile (IMO) visual rule chains.

  19. biscuit-rust

    Rust implementation of the Biscuit authorization token

    Project mention: Delegating authority across companies with Biscuit tokens | dev.to | 2026-10-03

    Biscuit is a bearer token format with three properties that fit this problem.

  20. frank_jwt

    JSON Web Token implementation in Rust.

    Project mention: Sessions vs JWTs: you are choosing how often you pay for state | dev.to | 2026-08-31

    A JWT is signed, not encrypted. Anyone holding the token can read every claim inside it. jwt.io will do it for you in a browser.

  21. nforwardauth

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

  22. pam

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

  23. openid

    OpenID Connect Rust Library

  24. sspi-rs

    A Rust implementation of the Security Support Provider Interface (SSPI) API

  25. casbin-axum-casbin

    Axum authorization middleware based on Casbin

  26. SaaSHub

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

    SaaSHub logo
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 Authentication discussion

Log in or Post with

Rust Authentication related posts

  • Delegating authority across companies with Biscuit tokens

    2 projects | dev.to | 3 Oct 2026
  • I close SSH port 22 (and what I use instead)

    4 projects | news.ycombinator.com | 14 Aug 2026
  • Show HN: Reinhardt – Rust web framework with WASM front end, admin, DI, and ORM

    1 project | news.ycombinator.com | 6 May 2026
  • Show HN: Reinhardt – Django-style Rust framework; WASM+SSR from one DSL

    1 project | news.ycombinator.com | 22 Apr 2026
  • Trailbase: Fast, single-executable, open app platform built on Rust and SQLite

    1 project | news.ycombinator.com | 16 Dec 2025
  • TrailBase: Fast, open, single-executable BaaS

    1 project | news.ycombinator.com | 12 Dec 2025
  • Lldap Release v0.6.0

    1 project | news.ycombinator.com | 9 Nov 2024
  • A note from our sponsor - AppSignal
    www.appsignal.com | 10 Oct 2026
    Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise. Learn more →

Index

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

# Project Stars
1 lldap 6,550
2 trailbase 5,639
3 kanidm 5,441
4 Ockam 4,637
5 defguard 2,865
6 GlobalProtect-openconnect 2,280
7 rust-jwt 2,098
8 rauthy 1,363
9 sudo_pair 1,272
10 axum-login 1,022
11 openidconnect-rs 644
12 internet-identity 535
13 gaze 489
14 torii-rs 456
15 cotp 390
16 rust-jwt-simple 282
17 biscuit-rust 252
18 frank_jwt 251
19 nforwardauth 157
20 pam 91
21 openid 86
22 sspi-rs 84
23 casbin-axum-casbin 72

Sponsored
AppSignal knows why the f*#k it crashed.
Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
www.appsignal.com

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