Multi-provider authentication with Omniauth
Ruby CSS JavaScript CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app Google Apps added. Jun 24, 2012
config Google Apps added. Jun 24, 2012
db initial commit Apr 5, 2011
doc initial commit Apr 5, 2011
lib/tasks initial commit Apr 5, 2011
public
script initial commit Apr 5, 2011
test initial commit Apr 5, 2011
vendor/plugins initial commit Apr 5, 2011
!omniauth_pure.tmproj initial commit Apr 5, 2011
.gitignore initial commit Apr 5, 2011
Gemfile Google Apps added. Jun 24, 2012
Gemfile.lock Google Apps added. Jun 24, 2012
LICENSE
README Update README Nov 3, 2013
Rakefile initial commit Apr 5, 2011
config.ru initial commit Apr 5, 2011

README

Unsupported - kept as an archive...feel free to clone and update to Rails 4.0
-----------------------------------------------------------------------------

Credits:
Omniauth: http://github.com/intridea/omniauth
Omniauth Buttons: http://github.com/intridea/authbuttons


If you want to use Omniauth pure as a starting point in one of your applications, you just need to:
* add Omniauth to your gems
* generate a user model with whatever fields you like: rails generate model user name:string ...
* generate the service model: rails generate model service user_id:integer provider:string uid:string uname:string uemail:string
* generate the service controller: rails generate controller services
* set the secret for the cookie store in config/initializers/session_store!
* copy part of routes.rb
* copy the models service.rb and user.rb (or edit, if you already have a user model!)
* copy the code of the services_controller
* copy all views from services
* copy (parts of) the stylesheet
* and refer to the article for details...


-----------------------------
June 2012 - Jorge Barnaby
Updated for Rails 3.2.6 and Omniauth 1.1.0