No commit activity in last 3 years
No release in over 3 years
Social login for devise via omniauth.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
>= 5.0.0.1, ~> 5.0.0
 Project Readme

DeviseSocialLogin

Add omniauth login to Rails Application via Devise. Support follwing provider:

  • Facebook
  • Twitter
  • Github
  • Google
  • Line

Installation

Add this line to your application's Gemfile:

gem 'devise_social_login'

And then execute:

$ bundle

Or install it yourself as:

$ gem install devise_social_login

Usage

  1. Add omniauth_callbacks key to the route setting:

    # config/routes.rb
    
    devise_for :users, controllers: { omniauth_callbacks: 'devise_social_login/omniauth_callbacks' }
  2. Add provider settings to devise:

    # config/initializer/devise.rb
    
    ...
    config.omniauth :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], scope: 'email', callback_url: 'http://localhost:3000/users/auth/facebook/callback'
    config.omniauth :twitter, ENV['TWITTER_APP_ID'], ENV['TWITTER_APP_SECRET']
    ...

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.