{"id":16987857,"url":"https://github.com/timfjord/aws-srp","last_synced_at":"2026-05-16T13:34:06.882Z","repository":{"id":54227314,"uuid":"292809011","full_name":"timfjord/aws-srp","owner":"timfjord","description":"AWS Cognito SRP Utility","archived":false,"fork":false,"pushed_at":"2021-03-02T11:13:56.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-12T03:29:20.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timfjord.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-04T09:37:30.000Z","updated_at":"2021-08-26T09:33:38.000Z","dependencies_parsed_at":"2022-08-13T09:40:27.615Z","dependency_job_id":null,"html_url":"https://github.com/timfjord/aws-srp","commit_stats":null,"previous_names":["timsly/aws-srp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timfjord/aws-srp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timfjord%2Faws-srp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timfjord%2Faws-srp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timfjord%2Faws-srp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timfjord%2Faws-srp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timfjord","download_url":"https://codeload.github.com/timfjord/aws-srp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timfjord%2Faws-srp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33104527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":[],"created_at":"2024-10-14T02:50:56.358Z","updated_at":"2026-05-16T13:34:06.845Z","avatar_url":"https://github.com/timfjord.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-srp ![Build Status](https://github.com/timfjord/aws-srp/actions/workflows/test.yml/badge.svg)\n\nAWS Cognito SRP Utility\n\nThis is a ruby implementation of [the AWS Cognito flow helpers](https://github.com/aws-amplify/amplify-js/blob/main/packages/amazon-cognito-identity-js/src/AuthenticationHelper.js)\nusing some ideas from [the SIRP gem](https://github.com/grempe/sirp)\n\nBy design the `AwsSRP::Flow` only processes params but doesn't trigger any requests.\nRequests should be handled on the client side.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'aws-srp'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install aws-srp\n\n## Usage\n\n```ruby\nflow = AwsSRP::Flow.new\ninit_params = flow.init_auth\n\n# Do the init AWS Congnito request by sending `init_params`\n# Parse the JSON response and pass it to the `AwsSRP::Flow#verify_password`\n\nchallenge_request_params = flow.verify_password(challenge_response_body)\n\n# Send the `challenge_request_params` and parse the response.\n# The session token should be there\n```\n\n## TODO\n\n- Test coverage for `AwsSRP::SRP` and `AwsSRP::Flow` classes\n- Handle more AWS Cognito features(2FA, etc)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/timsly/aws-srp.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimfjord%2Faws-srp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimfjord%2Faws-srp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimfjord%2Faws-srp/lists"}