Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Gem that allows to use devise to handle authentication in hobo-based applications
Ruby
Branch: master
Pull request Compare This branch is 3 commits ahead, 3 commits behind ahenobarbi:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README
Rakefile
VERSION
hobo_devise.gemspec

README

For now there is a number of things you need to do to use this gem:
1) Create your hobo application
2) In your user model rename field

    email_address

to

    email

3) Edit your mailers and lifecycles to use

    email

field, not

    email_address

4) In your user model replace

    hobo_devise_user_model

with

    hobo_devise_user_model :auth_methods => [:database_authenticable,
                                              :devise_oauth2_facebook]

5) In your users controller replace

    hobo_user_controller

with

    hobo_devise_oauth2_facebook_controller(YourUserModelName)

6) Add routes in config/routes.rb

    devise_for :users, :controllers => { :omniauth_callbacks => 'users' }

7) Write a facebook method for your controller

    https://github.com/plataformatec/devise/wiki/OmniAuth%3A-Overview
Something went wrong with that request. Please try again.