Skip to content
πŸ” Small OAuth crate that follows the sans-io approach πŸ¦€
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
examples
src
tests
vendor/jsonwebtoken
.gitignore
.mergify.yml
CHANGELOG.md Release 0.3.0 (#5) Oct 10, 2019
CODE_OF_CONDUCT.md Add CoC and Contributor Guide (#2) Jul 9, 2019
CONTRIBUTING.md
Cargo.toml Release 0.3.0 (#5) Oct 10, 2019
LICENSE-APACHE
LICENSE-MIT
README.md
deny.toml

README.md

πŸ” tame-oauth

Build Status Latest version Docs Contributor Covenant Embark

tame-oauth is a small oauth crate that follows the sans-io approach.

Why?

  • You want to control how you actually make oauth HTTP requests

Why not?

  • The only auth flow that is currently implemented is the service account flow for GCP. Other flows can be added, but right now that is the only one we need.
  • There are several other oauth crates available that have many more features and are easier to work with, if you don't care about what HTTP clients they use.
  • This crate requires more boilerplate to use.

Examples

svc_account

Usage: cargo run --example svc_account -- <key_path> <scope..>

A small example of using tame-oauth together with reqwest. Given a key file and 1 or more scopes, it will attempt to get a token that could be used to access resources in those scopes.

cargo run --example svc_account -- ~/.secrets/super-sekret.json https://www.googleapis.com/auth/pubsub https://www.googleapis.com/auth/devstorage.read_only

Contributing

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started.

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.