No commit activity in last 3 years
No release in over 3 years
Shutterstock-Contributor OAuth2 strategy for OmniAuth.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 0.10
~> 10.0
~> 3.2

Runtime

 Project Readme

Omniauth::Shutterstock::Contributor

Gem Version

Shutterstock Contributor OAuth2 Strategy for OmniAuth.

Supports the OAuth 2.0 server-side and client-side flows. Read the Shutterstock API docs for more details: https://developers.shutterstock.com/guides/authentication

Installation

Add this line to your application's Gemfile:

gem 'omniauth-shutterstock-contributor'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-shutterstock-contributor

Usage

Register your application with Shutterstock to receive Client ID and Client Secret: https://developers.shutterstock.com/applications

This is an example that you might put into a Rails initializer at config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :shutterstock_contributor, ENV['SHUTTERSTOCK_CLIENT_ID'], ENV['SHUTTERSTOCK_CLIENT_SECRET']
end

OR you might put following code to config/initializers/devise.rb:

config.omniauth :shutterstock_contributor, ENV['SHUTTERSTOCK_CLIENT_ID'], ENV['SHUTTERSTOCK_CLIENT_SECRET']

Contributing

  1. Fork it
  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