{"repo":"EmbarkStudios/tame-oauth","free":true,"listed":false,"github":"https://github.com/EmbarkStudios/tame-oauth","clone":"git clone https://github.com/EmbarkStudios/tame-oauth.git","description":"🔐 Small OAuth crate that follows the sans-io approach 🦀","language":"Rust","stars":85,"topics":["rust","oauth","sans-io","hacktoberfest"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"🔐 tame-oauth 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 flows that is currently implemented is the service account, user credentials and metadata server flow for GCP. Other flows can be added, but right now GCP is the only provider 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. Features gcp (default) - Support for GCP oauth2 wasm-web - Enables wasm features in ring needed for tame-oauth to be used in a wasm browser context. Note this feature should not be used when targeting wasm outside the browser context, in which case you would likely need to target wasm32-wasi . jwt (default) - Support for JSON Web Tokens, required for gcp url (default) - Url parsing, required for gcp Examples svc account Usage: cargo run --example svc account -- 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 default creds Usage: cargo run --example default creds -- Attempts to find and use the default credentials to get a token. Note that s","default_branch":null,"files":null,"tree":[],"storefront":"/r/EmbarkStudios","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EmbarkStudios/tame-oauth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}