0.0
No commit activity in last 3 years
No release in over 3 years
OAuth2 strategy for the Uphold API, by Subvisual
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
~> 3.1, ~> 3.1.0
~> 0.27.1

Runtime

>= 1.2.2, ~> 1.2
>= 1.2.0, ~> 1.2
 Project Readme

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

  1. Fork it ( https://github.com/[my-github-username]/omniauth-uphold/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