oauth-lib

Crates.iooauth-lib
lib.rsoauth-lib
version2.0.0
sourcesrc
created_at2023-08-27 12:29:56.728447
updated_at2024-12-09 10:57:10.975592
descriptionAsynchronous Rust library to deal with OAuth flows
homepagehttps://pimalaya.org/
repositoryhttps://github.com/pimalaya/core/tree/master/oauth/
max_upload_size
id956055
size85,867
Clément DOUIN (soywod)

documentation

https://docs.rs/oauth-lib/latest/oauth/

README

👤 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

Commit count: 0

cargo fmt