Crates.io | yup-oauth2 |
lib.rs | yup-oauth2 |
version | 11.0.0 |
source | src |
created_at | 2015-02-27 08:21:00.801028 |
updated_at | 2024-06-27 17:56:13.371765 |
description | An oauth2 implementation, providing the 'device', 'service account' and 'installed' authorization flows |
homepage | |
repository | https://github.com/dermesser/yup-oauth2 |
max_upload_size | |
id | 1484 |
size | 282,960 |
yup-oauth2 is a utility library which implements several OAuth 2.0 flows. It's mainly used by
google-apis-rs, to authenticate against Google services.
(However, you're able to use it with raw HTTP requests as well; the flows are implemented as token
sources yielding HTTP Bearer tokens). Note that the newer, asynchronous versions of this crate
(version 4) are not compatible with google-apis-rs
anymore/at the moment.
To use asynchronous APIs with the new yup-oauth2 (from version 4), use the
async-google-apis
code
generator, which generates asynchronous API stubs for Google APIs and other
providers who provide Discovery documents for their REST APIs. (WARNING: that
project is still alpha-quality. Contributions are welcome)
The provider we have been testing the code against is also Google. However, the code itself is generic, and any OAuth provider behaving like Google will work as well. If you find one that doesn't, please let us know and/or contribute a fix!
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.