Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
100644 29 lines (22 sloc) 1.92 kb
439da8c initial commit
Markus Proske authored
1 Read the full article "Omniauth pure: Authentication with Facebook, Google, Google Apps, Twitter, Github, AOL, MyOpenID and many other OpenID providers" on CommunityGuides:
1d01a0d fixed readme
Markus Proske authored
4 This article will demonstrate how to set up a multi-provider authentication using the fabulous Omniauth gem. Users will be able to add multiple providers to their account and views for sign-in, sign-up and management of linked accounts are provided. The full source code is available on Github as a basis for your own projects.
439da8c initial commit
Markus Proske authored
6 Ruby on Rails CommunityGuides follows the purpose of giving back to open source - more specific, to the Rails community. It has been built to provide a basis to share knowledge on Ruby on Rails development. Developers from all over the world can share their knowledge easily and gain profit from the knowledge of other developers. All content is free and published under a Creative Commons license.
8 Credits:
9 Omniauth:
10 Omniauth Buttons:
13 If you want to use Omniauth pure as a starting point in one of your applications, you just need to:
14 * add Omniauth to your gems
15 * generate a user model with whatever fields you like: rails generate model user name:string ...
16 * generate the service model: rails generate model service user_id:integer provider:string uid:string uname:string uemail:string
17 * generate the service controller: rails generate controller services
18 * set the secret for the cookie store in config/initializers/session_store!
19 * copy part of routes.rb
20 * copy the models service.rb and user.rb (or edit, if you already have a user model!)
21 * copy the code of the services_controller
22 * copy all views from services
23 * copy (parts of) the stylesheet
a7f166f Jorge Barnaby README updated.
yorch authored
24 * and refer to the article for details...
26 -----------------------------
27 June 2012 - Jorge Barnaby
28 Updated for Rails 3.2.6 and Omniauth 1.1.0
Something went wrong with that request. Please try again.