Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple gem for adding Rack based admin-only Oauth-credentials to Artsy apps.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.0

Runtime

>= 0
>= 0
 Project Readme

ArtsyAuth::Gravity

A really simple authentication tool that uses the JWT to authenticate.

Meta

Installation

Add this line to your application's Gemfile:

gem 'artsy-rack-auth-admin-only'

And then execute:

$ bundle

Usage

In your rack project, add the following ENV vars:

GRAVITY_URL = # A gravity API instance like https://api.artsy.net/
APPLICATION_ID = # Your ClientApplication's ID
APPLICATION_SECRET = # Your ClientApplication's secret
APPLICATION_INTERNAL_SECRET = # Your ClientApplication's internal secret, you can get this via gravity console
HOST = # Your site's public URL

Then inside the file where you're configuring your app, add:

require "artsy-rack-auth-admin-only"
use ArtsyAuth::Gravity

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/artsy/artsy-rack-auth-admin-only.