/omniauth-backme

Primary LanguageRubyMIT LicenseMIT

gemfile configuration: controller, model, initializer registration needed? confirmable?

Omniauth::Backme

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem "omniauth-backme", git: "git@github.com:BackerFounder/omniauth-backme.git"

And then execute:

$ bundle

Configuration

# config/initializers/devise.rb
Devise.setup do |config|
  config.omniauth :backme, Rails.application.secrets.backme_key, Rails.application.secrets.backme_secret
end

or

# config/initializers/devise.rb
Devise.setup do |config|
  config.omniauth :backme, ENV["BACKME_KEY"], ENV["BACKME_SECRET"]
end
# app/models/user.rb
omniauth_providers: [:facebook, :google_oauth2, :weibo, :backme]

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/[my-github-username]/omniauth-backme/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request