https://github.com/subvisual/omniauth-uphold
Bitreserve strategy for OmniAuth
https://github.com/subvisual/omniauth-uphold
Last synced: 13 days ago
JSON representation
Bitreserve strategy for OmniAuth
- Host: GitHub
- URL: https://github.com/subvisual/omniauth-uphold
- Owner: subvisual
- License: mit
- Created: 2015-05-11T11:34:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T00:12:31.000Z (about 6 years ago)
- Last Synced: 2025-01-30T08:17:57.238Z (about 1 year ago)
- Language: Ruby
- Size: 14.6 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Omniauth Uphold
This gem contains the [Uphold](https://uphold.com/) strategy for OmniAuth
## Using this strategy
Add this line to your application's Gemfile:
```ruby
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:
```ruby
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:
```ruby
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