OmniAuth::PopUpTalent
This gem contains an Omniauth strategy for authenticating against Pop Up Talent Oauth gateway.
Installation
Add this line to your application's Gemfile:
gem 'omniauth-pop-up-talent'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-pop-up-talent
Usage
Like any other Omniauth strategy, OmniAuth::PopUpTalent is a middleware that you need to use in your Rack application:
use OmniAuth::Strategies::PopUpTalent,
key: 'YOUR_KEY',
secret: 'YOUR_SECRET',
host: '(optional) the host address, like https://accounts.pop-up-talent.com'
in Rails, you might want to put it in config/initializers/pop_up_talent.rb
:
Rails.application.config.middleware.use OmniAuth::Strategies::PopUpTalent,
key: 'YOUR_KEY',
secret: 'YOUR_SECRET',
host: 'https://example.com'
Contributing
- Fork it
- 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 new Pull Request