Omniauth::Punwave
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem "omniauth-punwave", git: "git@github.com:BackerFounder/omniauth-punwave.git"
And then execute:
$ bundle
Configuration
# config/initializers/devise.rb
Devise.setup do |config|
config.omniauth :punwave, Rails.application.secrets.punwave_key, Rails.application.secrets.punwave_secret
end
or
# config/initializers/devise.rb
Devise.setup do |config|
config.omniauth :punwave, ENV["PUNWAVE_KEY"], ENV["PUNWAVE_SECRET"]
end
# app/models/user.rb
omniauth_providers: [:facebook, :google_oauth2, :weibo, :punwave]
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( https://github.com/[my-github-username]/omniauth-punwave/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request