OmniauthGenerator
Simple Gem created because I kept repeating the same simple steps everytime I used omniauth
Usage
Description: Generates all files needed for basic omniauth 'login with facebook or twitter'
Example: rails generate omniauth_initializer Session
This will create:
config/api_keys.yml <- Set your app keys here.
config/initializers/omniauth_initializer.rb <- choose the providers you will use
app/controllers/sessions_controller.rb <- sample controller
And add a route to your routes.rb file:
get '/auth/:provider/callback', :to => 'sessions#create'
Contributing
- Fork it ( http://github.com/rennanoliveira/omniauth_generator/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - ADD TESTS.
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request