{"id":21177482,"url":"https://github.com/lholden/authy-rs","last_synced_at":"2025-09-03T03:34:25.580Z","repository":{"id":57501222,"uuid":"85385028","full_name":"lholden/authy-rs","owner":"lholden","description":"Rust API bindings for the Authy services. ","archived":false,"fork":false,"pushed_at":"2018-12-26T15:16:42.000Z","size":54,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-01T11:51:34.129Z","etag":null,"topics":["2fa","authentication","authy","two-factor"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lholden.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}},"created_at":"2017-03-18T07:54:05.000Z","updated_at":"2024-05-04T17:02:30.000Z","dependencies_parsed_at":"2022-09-14T19:41:14.776Z","dependency_job_id":null,"html_url":"https://github.com/lholden/authy-rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lholden/authy-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fauthy-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fauthy-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fauthy-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fauthy-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lholden","download_url":"https://codeload.github.com/lholden/authy-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lholden%2Fauthy-rs/sbom","scorecard":{"id":587225,"data":{"date":"2025-08-11","repo":{"name":"github.com/lholden/authy-rs","commit":"16ab301a9776499f1e9526f119f6fa856f9a717a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":1,"reason":"Found 3/25 approved changesets -- score normalized to 1","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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Warn: project license file does not contain an FSF or OSI license."],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 8 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-20T20:52:25.634Z","repository_id":57501222,"created_at":"2025-08-20T20:52:25.634Z","updated_at":"2025-08-20T20:52:25.634Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273385581,"owners_count":25096111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["2fa","authentication","authy","two-factor"],"created_at":"2024-11-20T17:16:15.145Z","updated_at":"2025-09-03T03:34:25.547Z","avatar_url":"https://github.com/lholden.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authy-rs\n[![](https://docs.rs/authy/badge.svg)](https://docs.rs/authy) [![](https://img.shields.io/crates/v/authy.svg)](https://crates.io/crates/authy) [![](https://travis-ci.org/lholden/authy-rs.svg?branch=master)](https://travis-ci.org/lholden/authy-rs)\n\nBindings for the Authy two factor web service\n\n## Usage\n\nPlease see the [Documentation](https://docs.rs/authy) for more details.\n\nYou will need your API key for your application on [authy.com](https://authy.com).\n\nBe sure to add the authy crate to your `Cargo.toml`:\n\n```toml\n[dependencies]\nauthy = \"*\"\n```\n\n\n'low-level' Usage example:\n\n```rust\nextern crate authy;\nuse authy::{Client, AuthyError};\nuse authy::api::user;\n\nfn main() {\n    let api_url = \"https://sandbox-api.authy.com\";\n    let api_key = \"bf12974d70818a08199d17d5e2bae630\";\n\n    let c = Client::new(api_url, api_key);\n\n    let country_code = 1;\n    let email = \"user@domain.com\";\n    let phone = \"949-555-1234\";\n\n    let (_, user) = user::create(\u0026c, email, country_code, phone, true).unwrap();\n   \n    println!(\"We have a user: {:#?}\", user);\n\n    let code = \"000000\"; // Pretend user has provided a valid code\n    match user::verify(\u0026c, user.id, code) {\n        Ok(_) =\u003e println!(\"Congrats on being validated!\"),\n        Err(AuthyError::UnauthorizedKey(e)) =\u003e println!(\"Token provided by the user was wrong\"),\n        Err(e) =\u003e println!(\"Some server error: {:?}\", e),\n    };\n\n    // Lets send out a sms token just for fun\n    // Must be using a real API key on the production authy server for this to\n    // actually send out anything.\n    user::sms(\u0026c, user.id, true, Some(\"login\"), Some(\"Authy documentation example login\")).unwrap();\n}\n```\n\n\n'high-level' Usage example:\n\n```rust\nextern crate authy;\nuse authy::{Client, User};\n\nfn main() {\n    let api_url = \"https://sandbox-api.authy.com\";\n    let api_key = \"bf12974d70818a08199d17d5e2bae630\";\n\n    let c = Client::new(api_url, api_key);\n\n    let country_code = 1;\n    let email = \"user@domain.com\";\n    let phone = \"949-555-1234\";\n\n    let mut user = User::create(\u0026c, email, country_code, phone, true).unwrap();\n\n    println!(\"We have a user: {:#?}\", user);\n\n    let code = \"000000\"; // Pretend user has provided a valid code\n    if user.verify(\u0026c, code).unwrap() {\n        println!(\"Congrats on being validated!\");\n    }\n\n    // Lets send out a sms token just for fun\n    // Must be using a real API key on the production authy server for this to\n    // actually send out anything.\n    user.sms(\u0026c, true, Some(\"login\"), Some(\"Authy documentation example login\")).unwrap();\n}\n```\n\n## License\n\nAuthy-rs is licensed 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\n   http://opensource.org/licenses/MIT)\n\n## Contributing\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\nPlease see the [CONTRIBUTING](CONTRIBUTING.md) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flholden%2Fauthy-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flholden%2Fauthy-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flholden%2Fauthy-rs/lists"}