Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. oxide-auth

oxide-auth

Rust

A comprehensive and extensible OAuth2 server library for Rust with pluggable backends and web server integrations.

GitHubGitHub
778 stars102 forks0 contributors

Overview

A OAuth2 server library, for use in combination with actix or other frontends, featuring a set of configurable and pluggable backends.

Use Cases

Not Ideal For

  • Projects using Rust web frameworks not listed in the integration table (e.g., warp or tide) without building custom adapters
  • Teams seeking a fully managed OAuth2 service with zero server-side implementation effort
  • Applications that only need simple API key or basic authentication without OAuth2's complexity
  • Rapid prototyping where time-to-market is critical and setting up a custom OAuth2 server is too time-intensive

Pros & Cons

Pros

Pluggable Storage Backends

Supports configurable backends for tokens, clients, and authorization codes, with extensions like oxide-auth-db for Redis, enabling flexible database integration.

Framework Agnostic Core

The base crate is independent of web servers, with ready-made adapters for actix, rocket, iron, rouille, and poem, allowing use across diverse Rust projects.

Extensible Trait Design

Built with Rust traits for frontend and backend interfaces, making it easy to implement custom logic, as emphasized in the project's philosophy.

Comprehensive OAuth2 Support

Implements various OAuth2 flows including authorization code, implicit, and client credentials, providing a full-featured authorization server.

Async Capabilities

Offers optional asynchronous operations through the oxide-auth-async crate, catering to modern, non-blocking application architectures.

Cons

Nightly Rust Dependency

The rocket adapter requires nightly Rust, as noted in the integration table, which can introduce instability and complicate deployment in stable environments.

Solo Maintainer Risks

Maintained by a single developer with limited time, as mentioned in the contributing notes, potentially slowing bug fixes, updates, and community support.

Complex Initial Setup

Implementing custom backends or integrating with unsupported frameworks demands deep knowledge of Rust traits and OAuth2 specs, increasing the learning curve.

Frequently Asked Questions

Quick Stats

Stars778
Forks102
Contributors0
Open Issues20
Last commit5 months ago
CreatedSince 2017

Tags

#web-authentication#actix-web#authorization-server#oauth2#rocket#rust-library#web-development#web#rust#actix#api-security

Built With

R
Rust
R
Rocket
p
poem
A
Actix

Included in

Rust56.6k
Auto-fetched 8 hours ago

Related Projects

jsonwebtokenjsonwebtoken

JWT lib in rust

Stars2,065
Forks348
Last commit2 days ago
oauth2oauth2

Extensible, strongly-typed Rust OAuth2 client library

Stars1,191
Forks205
Last commit4 months ago
totp-rstotp-rs

RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.

Stars262
Forks35
Last commit1 day ago
yup-oauth2yup-oauth2

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

Stars241
Forks118
Last commit4 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub