Omniauth Uphold
This gem contains the Uphold strategy for OmniAuth
Using this strategy
Add this line to your application's Gemfile:
gem 'omniauth-uphold'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-uphold
Now you must tell OmniAuth about this provider, For a Rails app, your config/initializers/omniauth.rb
file should look like this:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :uphold, 'API_KEY', 'API_SECRET'
end
Sandbox API
Uphold supports a sandbox environment for testing purposes. To use it you will need a different strategy:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :uphold_sandbox, 'API_KEY', 'API_SECRET', name: :uphold
end
You can add name: :uphold
to make sure it uses the same route names as if you were using the main strategy.
Contributing
- Fork it ( https://github.com/[my-github-username]/omniauth-uphold/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