Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

artsy/artsy-rack-auth-admin-only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The simplest admin-only authentication library for Artsy admin-only apps using Rack.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published