No commit activity in last 3 years
No release in over 3 years
OmniAuth strategy for SmugMug (OAuth 1.0)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

OmniAuth SmugMug

This is an OmniAuth 1.0 strategy for authenticating to SmugMug.

Get a SmugMug API key here

This fork adds the access and permissions options during the authorization phase.

Installation

gem 'liangzan_omniauth-smugmug', require: 'omniauth-smugmug'

Usage

In a Rack application:

use OmniAuth::Builder do
  provider :smugmug, ENV['SMUGMUG_KEY'], ENV['SMUGMUG_SECRET'], access: 'Full', permissions: 'Modify'
end

For Rails, put this in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :smugmug, ENV['SMUGMUG_KEY'], ENV['SMUGMUG_SECRET'], access: 'Full', permissions: 'Modify'
end

License

Copyright (c) 2014 Wong Liang Zan.

This source code released under an MIT license.