{"id":13621380,"url":"https://github.com/dermesser/yup-oauth2","last_synced_at":"2026-04-08T19:36:59.632Z","repository":{"id":27890301,"uuid":"31381789","full_name":"dermesser/yup-oauth2","owner":"dermesser","description":"An oauth2 client implementation providing the Device, Installed, Service Account, and several more flows.","archived":false,"fork":false,"pushed_at":"2025-11-29T09:14:54.000Z","size":1001,"stargazers_count":235,"open_issues_count":32,"forks_count":118,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-14T05:35:33.437Z","etag":null,"topics":["authorization","google","oauth2"],"latest_commit_sha":null,"homepage":"https://docs.rs/yup-oauth2/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dermesser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-02-26T18:24:54.000Z","updated_at":"2025-11-29T09:14:57.000Z","dependencies_parsed_at":"2023-01-14T07:41:11.543Z","dependency_job_id":"54b76b2c-8778-4551-b4fd-4fb3f3bce282","html_url":"https://github.com/dermesser/yup-oauth2","commit_stats":{"total_commits":524,"total_committers":55,"mean_commits":9.527272727272727,"dds":0.6431297709923665,"last_synced_commit":"3cc35783e8f36980695a49ab7806753f1cee5c51"},"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"purl":"pkg:github/dermesser/yup-oauth2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermesser%2Fyup-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermesser%2Fyup-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermesser%2Fyup-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermesser%2Fyup-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dermesser","download_url":"https://codeload.github.com/dermesser/yup-oauth2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermesser%2Fyup-oauth2/sbom","scorecard":{"id":335746,"data":{"date":"2025-08-11","repo":{"name":"github.com/dermesser/yup-oauth2","commit":"52e29d8db1cd91e6074d6f589bf586220ad05ec4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":3,"reason":"Found 5/14 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/dermesser/yup-oauth2/test.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'master'","Warn: could not determine whether codeowners review is allowed","Warn: no status checks found to merge onto branch 'master'","Warn: PRs are not required to make changes on branch 'master'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T04:40:40.134Z","repository_id":27890301,"created_at":"2025-08-18T04:40:40.134Z","updated_at":"2025-08-18T04:40:40.134Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authorization","google","oauth2"],"created_at":"2024-08-01T21:01:05.307Z","updated_at":"2026-04-08T19:36:59.609Z","avatar_url":"https://github.com/dermesser.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries","Rust"],"sub_categories":["Authentication","身份验证 Authentication"],"readme":"[![Build\nStatus](https://github.com/dermesser/yup-oauth2/actions/workflows/test.yml/badge.svg)](https://github.com/dermesser/yup-oauth2/actions)\n[![crates.io](https://img.shields.io/crates/v/yup-oauth2.svg)](https://crates.io/crates/yup-oauth2)\n\n**yup-oauth2** is a utility library which implements several OAuth 2.0 flows. It's mainly used by\n[google-apis-rs](https://github.com/Byron/google-apis-rs), to authenticate against Google services.\n(However, you're able to use it with raw HTTP requests as well; the flows are implemented as token\nsources yielding HTTP Bearer tokens). Note that the newer, asynchronous versions of this crate\n(version 4) are not compatible with `google-apis-rs` anymore/at the moment.\n\nTo use asynchronous APIs with the new yup-oauth2 (from version 4), use the\n[`async-google-apis`](https://github.com/dermesser/async-google-apis) code\ngenerator, which generates asynchronous API stubs for Google APIs and other\nproviders who provide Discovery documents for their REST APIs. (*WARNING*: that\nproject is still *alpha*-quality. Contributions are welcome)\n\nThe provider we have been testing the code against is also Google. However, the code itself is\ngeneric, and any OAuth provider behaving like Google will work as well. If you find one that\ndoesn't, please let us know and/or contribute a fix!\n\n### Supported authorization types\n\n* Device flow (user enters code on authorization page)\n* Installed application flow (user visits URL, copies code to application, application uses\n  code to obtain token). Used for services like GMail, Drive, ...\n* Service account flow: Non-interactive authorization of server-to-server communication based on\n  public key cryptography. Used for services like Cloud Pubsub, Cloud Storage, ...\n\n## Versions\n\n* Version 1.x for Hyper versions below 12\n* Version 2.x for Hyper versions 12 and above\n* Version 3.x for historical interest\n* Version 4.x for tokio 0.2/0.3\n* Version 5.x for tokio 1.0\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n         http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the\nwork by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n\n\n[API-docs]: https://docs.rs/yup-oauth2/\n[examples]: https://github.com/dermesser/yup-oauth2/tree/master/examples\n[auth-usage]: https://raw.githubusercontent.com/dermesser/yup-oauth2/master/examples/auth.rs-usage.gif\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdermesser%2Fyup-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdermesser%2Fyup-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdermesser%2Fyup-oauth2/lists"}