#web-server #oauth2 #client-server #server #oauth #error-response #adaptor

oxide-auth

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

29 releases

0.6.1 Jun 2, 2024
0.5.4 Sep 23, 2023
0.5.3 Oct 2, 2022
0.5.2 Jul 9, 2022
0.1.0-alpha.1 Nov 29, 2017

#33 in Authentication

Download history 7137/week @ 2024-08-08 6970/week @ 2024-08-15 7252/week @ 2024-08-22 9860/week @ 2024-08-29 9251/week @ 2024-09-05 9303/week @ 2024-09-12 9106/week @ 2024-09-19 7680/week @ 2024-09-26 5152/week @ 2024-10-03 7054/week @ 2024-10-10 11408/week @ 2024-10-17 11272/week @ 2024-10-24 10042/week @ 2024-10-31 8561/week @ 2024-11-07 11515/week @ 2024-11-14 10154/week @ 2024-11-21

42,447 downloads per month
Used in 16 crates (12 directly)

MIT/Apache

470KB
9K SLoC

oxide-auth

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

About

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.

Integration

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

Additional

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].

Dependencies

~5–11MB
~125K SLoC