2 stable releases

2.0.0 Dec 9, 2024
1.0.0 Oct 28, 2024
0.1.1 Apr 6, 2024
0.1.0 Aug 27, 2023

#264 in Authentication

Download history 45/week @ 2024-08-29 29/week @ 2024-09-05 39/week @ 2024-09-12 67/week @ 2024-09-19 99/week @ 2024-09-26 39/week @ 2024-10-03 44/week @ 2024-10-10 10/week @ 2024-10-17 173/week @ 2024-10-24 48/week @ 2024-10-31 31/week @ 2024-11-07 43/week @ 2024-11-14 60/week @ 2024-11-21 41/week @ 2024-11-28 488/week @ 2024-12-05 188/week @ 2024-12-12

794 downloads per month
Used in 6 crates (4 directly)

MIT license

36KB
391 lines

👤 oauth-lib

Asynchronous Rust library to deal with OAuth flows.

Features

  • Implements the OAuth 2.0 Authorization Code Grant flow from RFC6749
  • Implements the OAuth 2.0 Refresh Access Token flow from RFC6749
  • Supports tokio and async-std async runtimes
  • Supports rustls and native-tls crypto libs

The library comes with 5 cargo features, including 2 default ones:

  • tokio: enables the tokio async runtime
  • async-std: enables the async-std async runtime
  • rustls: enables the rustls crypto
  • native-tls: enables the native-tls crypto
  • vendored: compiles and statically link to a copy of non-Rust vendors like OpenSSL

Examples

Examples can be found at ./examples:

cargo run --example

See the full API documentation on docs.rs.

Sponsoring

nlnet

Special thanks to the NLnet foundation and the European Commission that helped the project to receive financial support from various programs:

If you appreciate the project, feel free to donate using one of the following providers:

GitHub Ko-fi Buy Me a Coffee Liberapay thanks.dev PayPal

Dependencies

~16–29MB
~543K SLoC