Rust Authentication Libraries
Libraries for Rust
GitHub Star Comparison
| No | Name | GitHub Stars | Description | Trend | License | Type | Official Site |
|---|---|---|---|---|---|---|---|
| 1 | jsonwebtoken | ⭐ 1.9k | High-performance JWT implementation library for Rust. Supports signature algorithms like HS256, RS256 with type-safe token processing | Rapid growth as top candidate for Rust authentication library. Expanding adoption in development prioritizing performance and safety | MIT | JWT Token | Official |
| 2 | oauth2 | ⭐ 1.1k | Extensible OAuth2 client library for Rust. Supports flows including Authorization Code and Client Credentials | Standard choice for OAuth2 integration in Rust web applications. Valued for excellent type safety and error handling | MIT | OAuth2 Implementation | Official |
| 3 | axum-login | ⭐ 891 | Login library for Axum web framework. Provides session management and user authentication as Axum middleware | Rising attention with rapid growth of Axum framework. Authentication solution in modern Rust asynchronous web development | MIT | Framework-Specific Auth | Official |
| 4 | actix-identity | ⭐ 858 | Identity management middleware for Actix Web. Supports session-based and cookie-based authentication | Expanding demand with rising popularity of Actix Web framework. Adopted as authentication solution in high-speed Web API development | MIT | Session Management | Official |
| 5 | tower-sessions | ⭐ 365 | Session management library for Tower ecosystem. Provides type-safe and composable session handling | Rising attention in Axum and Tower-based application development. New choice in modern Rust web development | MIT | Composable Sessions | Official |
| 6 | argon2 | - | Argon2 password hashing library for Rust. Provides secure password storage and hash verification functionality | Recommended password hashing method in security-focused development. Expanding adoption due to Argon2's industry standardization | MIT | Cryptographic Hashing | Official |