{"id":15632558,"url":"https://github.com/jamiew/omniauth-youtube","last_synced_at":"2025-07-07T07:12:19.354Z","repository":{"id":1956221,"uuid":"2886504","full_name":"jamiew/omniauth-youtube","owner":"jamiew","description":"OmniAuth 1.0 strategy for connecting to YouTube","archived":false,"fork":false,"pushed_at":"2013-12-24T03:38:41.000Z","size":123,"stargazers_count":19,"open_issues_count":1,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-04T21:12:03.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/jamiew/omniauth-youtube","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamiew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-30T21:20:32.000Z","updated_at":"2017-08-07T22:40:14.000Z","dependencies_parsed_at":"2022-08-28T20:01:29.396Z","dependency_job_id":null,"html_url":"https://github.com/jamiew/omniauth-youtube","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jamiew/omniauth-youtube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fomniauth-youtube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fomniauth-youtube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fomniauth-youtube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fomniauth-youtube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiew","download_url":"https://codeload.github.com/jamiew/omniauth-youtube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Fomniauth-youtube/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263905784,"owners_count":23527981,"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-10-03T10:44:36.520Z","updated_at":"2025-07-07T07:12:19.337Z","avatar_url":"https://github.com/jamiew.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"OmniAuth YouTube\n================\n\n**NOTE: THIS GEM IS DEPRECATED IN FAVOR OF `google_oauth2`**\n\ngoogle_oauth2 configuration for YouTube\n---------------------------------------\n\nThis gem no longer works. Try [omniauth-google-oauth2](https://github.com/zquestz/omniauth-google-oauth2) instead:\n\n```\nconfig.omniauth :google_oauth2,KEY,SECRET, { access_type: \"offline\", approval_prompt: \"force\", name: \"youtube\" }\n```\n\nFor more discussion, see [omniauth-youtube issue #7](https://github.com/jamiew/omniauth-youtube/issues/7)\n\n\nAbout (OLD)\n-----------\n\nThis is an [OmniAuth 1.0](https://github.com/intridea/omniauth) strategy for authenticating to YouTube.\n\nGet a Google Oauth2.0 API key at their [API console](https://code.google.com/apis/console/)\n\nYour key (AKA client_id) looks like \"555555555555.apps.googleusercontent.com\"; a longer key like \"555555555-xxxxyyyzzz\"\nwon't work. See [this issue](https://github.com/zquestz/omniauth-google-oauth2/issues/10#issuecomment-5720475) for discussion.\n\nAn example Rails 3.2 application using omniauth and omniauth-youtube is also available:\n\u003chttps://github.com/jamiew/omniauth-rails-app\u003e\n\n\nUsage\n-----\n\nIn a Rack application:\n\n```ruby\nuse OmniAuth::Builder do\n  provider :youtube, ENV['YOUTUBE_KEY'], ENV['YOUTUBE_SECRET'], {:access_type =\u003e 'online', :approval_prompt =\u003e ''}\nend\n```\n\nFor Rails, put this in `config/initializers/omniauth.rb`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :youtube, ENV['YOUTUBE_KEY'], ENV['YOUTUBE_SECRET'], {:access_type =\u003e 'online', :approval_prompt =\u003e ''}\nend\n```\n\nRestart your server and visit */auth/youtube* to try it out\n\nOptions\n-------\n\nRe. :access_type and :approval_prompt, via [omniauth-google-oauth2](https://github.com/zquestz/omniauth-google-oauth2/blob/master/examples/omni_auth.rb):\n\n\u003e If you don't need a refresh token -- you're only using Google for account creation/auth and don't need Google services -- set the access_type to 'online', vs. 'offline'\n\u003e Also, set the approval prompt to an empty string, since otherwise it will be set to 'force', which makes users manually approve to the Oauth every time they log in.\n\u003e See \u003chttp://googleappsdeveloper.blogspot.com/2011/10/upcoming-changes-to-oauth-20-endpoint.html\u003e\n\n\n\nAuthors\n-------\n\n* [Jamie Wilkinson (@jamiew)](https://github.com/jamiew)\n* [@tarko](https://github.com/tarko)\n* [Simon Gate (@simon)](https://github.com/simon)\n\n\nLicense\n-------\n\nCopyright (c) 2011 Jamie Wilkinson\n\nThis source code released under an MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiew%2Fomniauth-youtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiew%2Fomniauth-youtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiew%2Fomniauth-youtube/lists"}