{"id":22085626,"url":"https://github.com/nexmo/ruby-2fa","last_synced_at":"2025-07-24T17:31:33.742Z","repository":{"id":14896069,"uuid":"65834976","full_name":"Nexmo/ruby-2fa","owner":"Nexmo","description":"Two Factor Authentication with Nexmo Verify","archived":false,"fork":false,"pushed_at":"2025-05-01T07:40:21.000Z","size":38,"stargazers_count":1,"open_issues_count":11,"forks_count":4,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-05-22T22:06:19.460Z","etag":null,"topics":["tutorial"],"latest_commit_sha":null,"homepage":"https://developer.nexmo.com/tutorials/two-factor-authentication","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nexmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2016-08-16T16:14:26.000Z","updated_at":"2023-03-08T15:22:56.000Z","dependencies_parsed_at":"2025-03-26T20:31:06.769Z","dependency_job_id":"e004e7a4-18aa-4ac9-91e2-07074faa70a8","html_url":"https://github.com/Nexmo/ruby-2fa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nexmo/ruby-2fa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-2fa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-2fa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-2fa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-2fa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nexmo","download_url":"https://codeload.github.com/Nexmo/ruby-2fa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-2fa/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266878570,"owners_count":23999619,"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-07-24T02:00:09.469Z","response_time":99,"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":["tutorial"],"created_at":"2024-12-01T01:15:24.091Z","updated_at":"2025-07-24T17:31:32.806Z","avatar_url":"https://github.com/Nexmo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Two Factor Authentication with Nexmo Verify\n\nA Rails (Ruby) app showing how to implement two-factor authentication using the Nexmo Verify API.\n\n## Prerequisites\n\n* [A Nexmo account](https://dashboard.nexmo.com/sign-up)\n* [Ruby 2.1+](https://www.ruby-lang.org/) and [Bundler](http://bundler.io/) installed\n* [Rails 5+](http://rubyonrails.org/) installed\n\n## Getting started\n\n```sh\n# clone this repository\ngit clone git@github.com:Nexmo/ruby-2fa.git\n# change to folder\ncd ruby-2fa\n# install dependencies\nbundle install\n# create a .env\ncp .env.example .env\n```\n\nNext you will need to sign up for a Nexmo account and get your API credentials from the API dashboard and put them in your `.env`\nfile.\n\nFinally all that's left is to start the server.\n\n```sh\nrails server\n```\n\n## Usage\n\nThis app shows you how to secure your app login with two-factor authentication using [Rails](http://rubyonrails.org/), Ruby and [Nexmo Verify](https://www.nexmo.com/products/verify/).\n\nOnce your server is started:\n\n* Visit [localhost:3000](http://localhost:3000/)\n* Register for an account\n  * The phone number must be provided without any leading 0's or +'s (e.g. `445555666777`)\n* You will receive a code in a few seconds, fill this in on the second form and submit\n* You will now be registered and logged in\n* Logout and in again to see the same in action for login\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fruby-2fa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexmo%2Fruby-2fa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fruby-2fa/lists"}