{"id":26774862,"url":"https://github.com/kit/omniauth-kit-oauth2","last_synced_at":"2026-02-14T15:35:35.295Z","repository":{"id":283514577,"uuid":"918389380","full_name":"Kit/omniauth-kit-oauth2","owner":"Kit","description":"Oauth2 strategy for Kit","archived":false,"fork":false,"pushed_at":"2025-09-01T20:29:04.000Z","size":99,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-08T01:18:31.875Z","etag":null,"topics":["kit","oauth2","omniauth","ruby"],"latest_commit_sha":null,"homepage":"https://developers.kit.com","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/Kit.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,"zenodo":null}},"created_at":"2025-01-17T20:40:06.000Z","updated_at":"2025-04-06T20:58:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"450828e2-3f53-479f-853f-992d6497d026","html_url":"https://github.com/Kit/omniauth-kit-oauth2","commit_stats":null,"previous_names":["kit/omniauth-kit-oauth2"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Kit/omniauth-kit-oauth2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kit%2Fomniauth-kit-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kit%2Fomniauth-kit-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kit%2Fomniauth-kit-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kit%2Fomniauth-kit-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kit","download_url":"https://codeload.github.com/Kit/omniauth-kit-oauth2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kit%2Fomniauth-kit-oauth2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29448045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"last_error":"SSL_read: 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":["kit","oauth2","omniauth","ruby"],"created_at":"2025-03-29T02:18:42.308Z","updated_at":"2026-02-14T15:35:35.266Z","avatar_url":"https://github.com/Kit.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth Kit OAuth2 Strategy\n\nStrategy to authenticate with Kit via OAuth2 in OmniAuth.\n\nGet your API key at: https://app.kit.com/account_settings/developer_settings Note the Client ID and the Client Secret.\n\nFor more details, read the Developer docs: https://developers.kit.com/v4\n\n## Installation\n\nAdd to your `Gemfile`:\n\n```ruby\ngem 'omniauth-kit-oauth2'\n```\n\nThen `bundle install`.\n\n## Usage\n\nHere's an example for adding the middleware to a Rails app in `config/initializers/omniauth.rb`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :kit_oauth2, client_id: ENV.fetch(\"KIT_CLIENT_ID\"),\n                        client_secret: ENV.fetch(\"KIT_CLIENT_SECRET\")\nend\n```\n\nYou can now access the OmniAuth Kit OAuth2 URL: `/auth/kit_oauth2`\n\n## Auth Hash\n\nHere's an example of an authentication hash available in the callback by accessing `request.env['omniauth.auth']`:\n\n```ruby\n{\n  \"provider\" =\u003e \"kit_oauth2\",\n  \"uid\" =\u003e 1,\n  \"info\" =\u003e {\n    \"name\" =\u003e \"Creator\",\n    \"email\" =\u003e \"creator@example.com\"\n  },\n  \"credentials\" =\u003e {\n    \"token\" =\u003e \"abc123\",\n    \"refresh_token\" =\u003e \"def456\",\n    \"expires_at\" =\u003e 123,\n    \"expires\" =\u003e true\n  },\n  \"extra\" =\u003e {\n    \"raw_info\" =\u003e {\n      \"user\" =\u003e {\n        \"email\" =\u003e \"test@example.com\"\n      },\n      \"account\" =\u003e {\n        \"name\" =\u003e \"Kit Greetings\",\n        \"plan_type\" =\u003e \"creator\",\n        \"primary_email_address\" =\u003e \"test@example.com\",\n        \"created_at\" =\u003e \"2023-02-17T11:43:55Z\",\n        \"id\" =\u003e 26\n      }\n    }\n  }\n}\n```\n\n## Publishing\n\nNew versions can be published using [the \"Publish\" GitHub\nAction](https://github.com/Kit/omniauth-kit-oauth2/actions/workflows/publish.yml).\n\nFirst you'll need to [update the\nversion.rb](https://github.com/Kit/omniauth-kit-oauth2/blob/main/lib/omniauth/kit_oauth2/version.rb),\nthen manually trigger in the UI via the \"Run workflow\" button.\n\n![](docs/publish-action.png)\n\nThis will:\n- Build the package\n- Push up a Git tag\n- Push the package to RubyGems\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit%2Fomniauth-kit-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkit%2Fomniauth-kit-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit%2Fomniauth-kit-oauth2/lists"}