No commit activity in last 3 years
No release in over 3 years
Generates yml file, inittializer, routes and a controller for basic omniauth authentication
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
 Project Readme

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

  1. Fork it ( http://github.com/rennanoliveira/omniauth_generator/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. ADD TESTS.
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request