0.0
No commit activity in last 3 years
No release in over 3 years
PRX strategy for OmniAuth using OAuth2
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 PRX

PRX Exchange (exchange.prx.org) provides OAuth2 support for login and access to v2 of the PRX API.

It also still supports OpenID authentication, and uses an API key for access to V1 of the PRX API.

OmniAuth PRX is based on the OmniAuth-OAuth2 gem template for OAuth2 strategies.

https://github.com/intridea/omniauth-oauth2

Installing

Add to your Gemfile:

gem 'omniauth-prx'

Then bundle install.

Usage

OmniAuth::Strategies::PRX is an OmniAuth OAuth2 Strategy based on the: https://github.com/intridea/omniauth.

Here's a quick example, adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider 'PRX', ENV['PRX_KEY'], ENV['PRX_SECRET']
end

To get the key and secret, login to PRX, then visit:

https://exchange.prx.org/oauth_clients

to set-up your client application.