Skip to content
A partial oauth2 implementation providing the Device, Installed and Service Account flows.
Branch: master
Clone or download
dermesser Merge pull request #88 from TheBiggerGuy/readme
Update README with codecov.io badge
Latest commit de57b8f Mar 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis Rust lint and coverage on Travis Feb 21, 2019
etc/sublime-text
examples Format to fustfmt defaults and force lint check in Travis Feb 21, 2019
src Format to fustfmt defaults and force lint check in Travis Feb 21, 2019
.clog.toml fix(versionup): version == 0.4.4 May 8, 2015
.gitignore
.travis.yml
CONTRIBUTING.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT Relicense to dual MIT/Apache-2.0 Jan 11, 2016
README.md Update README with codecov.io badge Feb 28, 2019
changelog.md

README.md

Build Status codecov crates.io

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

Supported authorization types

  • Device flow (user enters code on authorization page)
  • Installed application flow (user visits URL, copies code to application, application uses code to obtain token). Used for services like GMail, Drive, ...
  • Service account flow: Non-interactive for server-to-server communication based on public key cryptography. Used for services like Cloud Pubsub, Cloud Storage, ...

Usage

Please have a look at the API landing page for all the examples you will ever need.

A simple commandline program which authenticates any scope and prints token information can be found in the examples directory.

The video below shows the auth example in action. It's meant to be used as utility to record all server communication and improve protocol compliance.

usage

License

Licensed under either of

at your option.

Contribution

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.

You can’t perform that action at this time.