#oauth #server #oauth2


A OAuth2 library for common web servers, featuring a set of configurable and pluggable backends

24 releases

0.5.1 Sep 25, 2021
0.5.0 Sep 27, 2020
0.5.0-preview.0 Dec 23, 2019
0.4.5 Aug 20, 2019
0.1.0-alpha.1 Nov 29, 2017

#50 in Authentication

Download history 46/week @ 2021-07-02 80/week @ 2021-07-09 85/week @ 2021-07-16 65/week @ 2021-07-23 118/week @ 2021-07-30 69/week @ 2021-08-06 76/week @ 2021-08-13 77/week @ 2021-08-20 45/week @ 2021-08-27 37/week @ 2021-09-03 66/week @ 2021-09-10 46/week @ 2021-09-17 65/week @ 2021-09-24 92/week @ 2021-10-01 100/week @ 2021-10-08 114/week @ 2021-10-15

286 downloads per month
Used in less than 7 crates


7.5K SLoC


A OAuth2 server library, for use in combination with common web servers, featuring a set of configurable and pluggable backends.


oxide-auth aims at providing a comprehensive and extensible interface to managing OAuth2 tokens on a server. The core package is agnostic of the used front-end web server and adaptors for the actix, rocket, iron and rouille crates are provided in extension crates. Through an interface designed with traits, the frontend is as easily pluggable as the backend. You can provide your own request, response and error types as well as choose any custom method of authenticating clients and users by implement the appropriate traits.


Some popular server libraries have ready-made integration. These still require some dependency on the base crate but generally wrap the interface into a user that is considered more idiomatic for their library. Besides the implementation of oxide-auth traits for the request type, specific error and response traits are also implemented.

What Crate Notes Docs
actix oxide-auth-actix - actix docs
async wrappers oxide-auth-async - async docs
redis oxide-auth-db - redis docs
rocket oxide-auth-rocket nightly rocket docs
rouille oxide-auth-rouille - rouille docs
iron oxide-auth-iron - iron docs


Licensed under either of

The license applies to all parts of the source code, its documentation and supplementary files unless otherwise indicated. It does NOT apply to the replicated full-text copies of referenced RFCs which were included for the sake of completion. These are distributed as permitted by [IETF Trust License 4–Section 3.c.i][IETF4].


~134K SLoC