{"id":19809862,"url":"https://github.com/lewagon/omniauth-kitt","last_synced_at":"2025-06-14T15:37:20.180Z","repository":{"id":56886489,"uuid":"249745113","full_name":"lewagon/omniauth-kitt","owner":"lewagon","description":"OAuth Strategy for Kitt","archived":false,"fork":false,"pushed_at":"2022-12-13T17:43:06.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-13T11:58:22.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/omniauth-kitt/","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/lewagon.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-03-24T15:28:25.000Z","updated_at":"2023-02-18T18:25:16.000Z","dependencies_parsed_at":"2023-01-28T13:46:52.885Z","dependency_job_id":null,"html_url":"https://github.com/lewagon/omniauth-kitt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewagon%2Fomniauth-kitt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewagon%2Fomniauth-kitt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewagon%2Fomniauth-kitt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewagon%2Fomniauth-kitt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lewagon","download_url":"https://codeload.github.com/lewagon/omniauth-kitt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224245934,"owners_count":17279695,"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","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-11-12T09:18:30.235Z","updated_at":"2024-11-12T09:18:31.189Z","avatar_url":"https://github.com/lewagon.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth::Kitt\n\nProvides an OAuth connection for Le Wagon alumni.\n\n## Usage with Devise\n\nAdd this line to your application's `Gemfile`, then `bundle install`:\n\n```ruby\ngem 'omniauth-kitt'\n```\n\nGo to [kitt.lewagon.com/oauth/applications](https://kitt.lewagon.com/oauth/applications) and create a new application.\n\nCallback URL will be `http(s)://HOST/users/auth/kitt/callback`\n\n```ruby\nDevise.setup do |config|\n  config.omniauth :kitt, APP_ID, SECRET\n\n  # [...]\nend\n```\n\nYour `User` model needs this line:\n\n```ruby\nclass User \u003c ApplicationRecord\n  devise :omniauthable, omniauth_providers: [ :kitt ]\n\n  # [...]\nend\n```\n\nAnd your controller:\n\n```ruby\nclass Users::OmniauthCallbacksController \u003c Devise::OmniauthCallbacksController\n  def kitt\n    auth = request.env[\"omniauth.auth\"]\n    # [...]\n  end\nend\n```\n\n`auth` has the following keys:\n\n- `id` as an integer\n- `github_nickname` as a string\n- `email`, `first_name`, `last_name` \u0026 `avatar_url` as strings\n- `admin` as a boolean\n- `cities` as an array of _slugs_ (City managers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewagon%2Fomniauth-kitt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewagon%2Fomniauth-kitt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewagon%2Fomniauth-kitt/lists"}