0.01
Low commit activity in last 3 years
No release in over a year
Omniauth plugin for Artsy authentication.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

omniauth-artsy

Build Status

Artsy OAuth2 Strategy for OmniAuth.

Installation

Add to your Gemfile:

gem 'omniauth-artsy'

Then run bundle install.

Usage

OmniAuth::Strategies::Artsy is simply a Rack middleware. Read the OmniAuth docs for detailed instructions.

Add the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :artsy, ENV['ARTSY_CLIENT_ID'], ENV['ARTSY_CLIENT_SECRET']
end

Configuration

Configure in your app

Add omniauth_artsy.rb to your config/initializers and set artsy_api_url.

# config/initializers/omniauth_artsy.rb
OmniAuth::Artsy.configure do |config|
  config.artsy_api_url = ENV['ARTSY_API_URL']
end
Using ENV

Set ENV['ARTSY_API_URL'] to the location of the Artsy API, typically https://api.artsy.net in production.

License

MIT License, see LICENSE for details.