Omniauth::Inspur
This is the OAuth2 strategy for authenticating to your Inspur service.
Installation
Add this line to your application's Gemfile:
gem 'omniauth-inspur'
And then execute:
$ bundle
Or install it yourself as:
$ gem build omniauth-inspur.gemspec
$ gem install omniauth-inspur
Basic Usage
use OmniAuth::Builder do
provider :inspur, ENV['INSPUR_KEY'], ENV['INSPUR_SECRET']
end
Standalone Usage
use OmniAuth::Builder do
provider :inspur, ENV['INSPUR_KEY'], ENV['INSPUR_SECRET'],
{
client_options: {
site: 'https://inspur.com'
}
}
end
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