{"id":45036776,"url":"https://github.com/ninjapanzer/omniauth-shootproof","last_synced_at":"2026-02-19T07:11:57.710Z","repository":{"id":56886605,"uuid":"93872182","full_name":"ninjapanzer/omniauth-shootproof","owner":"ninjapanzer","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-09T16:28:29.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-14T11:26:13.072Z","etag":null,"topics":["gem","oauth2","omniauth","omniauth-oauth2","shootproof-api"],"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/ninjapanzer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-09T15:24:47.000Z","updated_at":"2020-06-09T06:14:40.000Z","dependencies_parsed_at":"2022-08-21T00:50:37.221Z","dependency_job_id":null,"html_url":"https://github.com/ninjapanzer/omniauth-shootproof","commit_stats":null,"previous_names":["savvysoftworksllc/omniauth-shootproof"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ninjapanzer/omniauth-shootproof","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjapanzer%2Fomniauth-shootproof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjapanzer%2Fomniauth-shootproof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjapanzer%2Fomniauth-shootproof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjapanzer%2Fomniauth-shootproof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninjapanzer","download_url":"https://codeload.github.com/ninjapanzer/omniauth-shootproof/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjapanzer%2Fomniauth-shootproof/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29606019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"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":["gem","oauth2","omniauth","omniauth-oauth2","shootproof-api"],"created_at":"2026-02-19T07:11:57.119Z","updated_at":"2026-02-19T07:11:57.705Z","avatar_url":"https://github.com/ninjapanzer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth Shootproof\n### Based off OmniAuth OAuth2\n\n[![Gem Version](http://img.shields.io/gem/v/omniauth-shootproof.svg)][gem]\n[![Build Status](https://travis-ci.org/SavvySoftWorksLLC/omniauth-shootproof.svg?branch=master)](https://travis-ci.org/SavvySoftWorksLLC/omniauth-shootproof)\n[![Dependency Status](http://img.shields.io/gemnasium/SavvySoftWorksLLC/omniauth-shootproof.svg)][gemnasium]\n\n[gem]: https://rubygems.org/gems/omniauth-shootproof\n[travis]: http://travis-ci.org/SavvySoftWorksLLC/omniauth-shootproof\n[gemnasium]:https://gemnasium.com/github.com/SavvySoftWorksLLC/omniauth-shootproof\n\nShootproof API Docs:\n- Auth: https://developer.shootproof.com/authdocs\n- Actions: https://developer.shootproof.com/apidocs\n\nThis gem contains an OmniAuth strategy for Shootproof. It relies on the OAuth2 and OmniAuth-OAuth2 gems. Shootproof API does not conform exactly to the standard set forth with the base OAuth2 Client so some changes include:\n- Access Tokens require the same params as the original Authorization request. The confusing part is the Token request is required POST so query string params are not included by default.\n- The Access token requires the `redirect_uri` to match the `callback_url` from the Authorization request. Omniauth by default provides the query params from the Authorization callback in future `redirect_uri` params. This will no longer match so the query string is ditched.\n- The Authorization endpoint does not pass-through any params os CSRF protection using the `state` param is not possible.\n\n## Configuring the Shootproof Strategy\n\n```ruby\n\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :shootproof, \u003cSHOOTPROOF_APP_ID\u003e, \n    scope: 'sp.event.get_list sp.event.get_photos sp.photo.info'\nend\n```\nThat's pretty much it!\n\nLike normal you will have to interpret the authenticaion response in your OmniAUth Session Controller.\n\nThe `info` response will contain the following hash\n```\n{\n  token: \u003cACCESS TOKEN\u003e,\n  refresh_token: \u003cREFRESH TOKEN\u003e,\n  expires_at: \u003cWHEN THE TOKEN AND REFRESH EXPIRE\u003e,\n  expires_in: \u003cTIME LEFT UNTIL EXPIRATION\u003e\n}\n```\n\nFor convenience the `uid` will be populated with the Access Token\n\nPaul Scarrone paul@savvysoftworks.com\nGary Newsome gary@savvysoftworks.com\nSavvySoftWorks LLC.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjapanzer%2Fomniauth-shootproof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjapanzer%2Fomniauth-shootproof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjapanzer%2Fomniauth-shootproof/lists"}