{"id":20586123,"url":"https://github.com/charlotte-ruby/devise_omniauth_engine","last_synced_at":"2025-04-14T21:12:13.353Z","repository":{"id":1486664,"uuid":"1734095","full_name":"charlotte-ruby/devise_omniauth_engine","owner":"charlotte-ruby","description":"THIS REPO IS NOT ACTIVELY MAINTAINED AND PROBABLY NOT COMPATIBLE WITH LATEST DEVISE/OMNIAUTH","archived":false,"fork":false,"pushed_at":"2012-08-18T13:47:44.000Z","size":204,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T21:12:06.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/charlotte-ruby.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":"2011-05-11T16:25:01.000Z","updated_at":"2015-01-07T15:33:38.000Z","dependencies_parsed_at":"2022-07-08T05:15:36.839Z","dependency_job_id":null,"html_url":"https://github.com/charlotte-ruby/devise_omniauth_engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fdevise_omniauth_engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fdevise_omniauth_engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fdevise_omniauth_engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fdevise_omniauth_engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlotte-ruby","download_url":"https://codeload.github.com/charlotte-ruby/devise_omniauth_engine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961236,"owners_count":21189993,"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-16T07:10:18.484Z","updated_at":"2025-04-14T21:12:13.324Z","avatar_url":"https://github.com/charlotte-ruby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# devise_omniauth_engine\n\n# THIS WAS A PROOF OF CONCEPT AND HAS NOT BEEN UPDATED IN A LONG TIME.  I WOULD RECOMMEND NOT USING IT FOR NEW PROJECTS.\n\n\nThis is meant for blank Rails 3 apps as an automated setup for Devise \u0026 Omniauth.  This engine will install devise and omniauth into your app and provide you with a callback controller that handles Twitter, Facebook, Google and Yahoo.  When you run the generator it performs the following steps for you:\n\n1. rails generate devise:install\n2. rails generate User\n3. rails generate devise:views\n4. Adds :omniauthable to the user model\n5. Creates an Authentication model with provider, uid, and user_id.  For example, Bob authenticates using twitter, it would add Bob's user_id, provider=twitter, and uid=uid provided by twitter\n6. Adds \"has_many :authentications\" to User model\n7. Overwrites the default Devise view in app/views/devise/shared/links, so it includes Google, Yahoo, Facebook \u0026 Twitter\n8. Creates UsersController and index view.  This is used as the default action after authentication.\n9. Provides a YAML config file where you can enter your Twitter and Facebook API key/secret that will be used by Omniauth.  Directory = config/yettings/devise_omniauth_engine.yml\n\n## Install\n\nAdd it to your Gemfile (This will include devise and omniauth gems, so no need to add them)\n\n    gem \"devise_omniauth_engine\", :git=\u003e\"git@github.com:charlotte-ruby/devise_omniauth_engine.git\"\n    \nInstall it using Bundler\n   \n    bundle install\n    \nRun the generator\n\n    rails g devise_omniauth_engine:install\n    \nThere are a few things that the devise generators will tell you to do regarding flash, mailer, and your root route.  You will need to do these manually after the generator finishes.\n\nRun migrations (devise and authentications model)\n\n    rake db:migrate\n    \nBy default, dev and test have working app keys for twitter and facebook apps.  These are just test apps, so you will want to add your own app keys/secrets to the config file - config/yettings/devise_omniauth_engine.yml\n\n    defaults: \u0026defaults\n      twitter_key: \u003cyours here\u003e\n      twitter_secret: \u003cyours here\u003e\n      facebook_key: \u003cyours here\u003e\n      facebook_secret: \u003cyours here\u003e\n        \n\nAfter that you can customize the views.  You can add buttons for Twitter, etc in this view:\n\n    app/views/devise/shared/_links.html.erb\n    \n\u003cb\u003eNOTE:\u003c/b\u003e If you are using Webrick as your development or test server, it will not be able to handle the size of the packets sent back by Yahoo and Google.  You should use mongrel instead:\n\n    #Gemfile\n    gem \"mongrel\", \"1.2.0.pre2\"\n    \nInstall w/ bundler\n\n    bundle install\n    \nStart up your mongrel in dev\n\n    rails s\n\n\n## TODO\n1. Allow users to associate multiple external providers to one account.  You are restricted to one per account currently.  \n2. Add all omniauth providers to the Devise.setup block.  Callbacks controller method_missing may need to be updated to accommodate some of these\n\n## Contributing to devise_omniauth_engine\n \n* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet\n* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it\n* Fork the project\n* Start a feature/bugfix branch\n* Commit and push until you are happy with your contribution\n* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n* NOTE: YOU WILL NEED TO UPDATE THE USERNAMES/PASSWORDS FOR THE AUTH FEATURE WITH YOUR OWN CREDENTIALS OR IT WILL FAIL\n* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.\n\n## Copyright\n\nCopyright (c) 2011 John McAliley. See LICENSE.txt for\nfurther details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlotte-ruby%2Fdevise_omniauth_engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlotte-ruby%2Fdevise_omniauth_engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlotte-ruby%2Fdevise_omniauth_engine/lists"}