{"id":57240,"library":"yup-oauth2","title":"yup-oauth2","description":"An oauth2 implementation providing the 'device', 'service account' and 'installed' authorization flows.","status":"active","version":"12.1.2","language":"rust","source_language":null,"source_url":"https://github.com/dermesser/yup-oauth2","tags":["oauth2","authentication","google","async"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nyup-oauth2 = \"12.1.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add yup-oauth2","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"ServiceAccountAuthenticator","correct":"use yup_oauth2::ServiceAccountAuthenticator;"}],"quickstart":{"code":"use yup_oauth2::ServiceAccountAuthenticator;\n\nasync fn authenticate() -> Result<(), Box<dyn std::error::Error>> {\n    let sa = ServiceAccountAuthenticator::new(\"path/to/service-account.json\").await?;\n    let token = sa.token(&[\"https://www.googleapis.com/auth/cloud-platform\"]).await?;\n    println!(\"Access token: {}\", token.as_str());\n    Ok(())\n}","lang":"rust","description":"Authenticate using a Google service account JSON key file and obtain an access token."},"warnings":[{"fix":"Add tokio as a dependency and use #[tokio::main] or similar runtime","message":"Requires a Tokio runtime for async operations","severity":"gotcha","affected_versions":">=12.0.0"}],"env_vars":null,"search_vec":"'account':11 'async':19 'authent':17 'author':14 'devic':9 'flow':15 'googl':18 'implement':6 'instal':13 'oauth2':3,5,16 'provid':7 'servic':10 'yup':2 'yup-oauth2':1","created_at":"2026-06-16T15:34:11.338959+00:00","updated_at":"2026-06-16T15:34:11.338959+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dermesser/yup-oauth2","github":"https://github.com/dermesser/yup-oauth2","docs":"https://docs.rs/yup-oauth2/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}