0.0
No commit activity in last 3 years
No release in over 3 years
Piryx OAuth2 strategy for OmniAuth 1.x
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.7

Runtime

>= 1.1.1
 Project Readme

Omniauth Automatic Strategy

Build Status

Piryx omniauth OAuth2 strategy.

Installation

gem 'omniauth-piryx'
bundle

Usage

Sign up for Piryx and create an application. Once you have the client id and client secret associate them with the OmniAuth strategy.

Example Integration

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :piryx, ENV["PIRYX_CLIENT_ID"], ENV["PIRYX_CLIENT_SECRET"], scope: "never_expire,create_payment,payment_details,payment_summary", sandbox: !Rails.env.production?
end

If a value for sandbox is not passed in the production API will always be used instead.

Scopes

You can change the permissions by selecting from the scopes available and passing them into the configuration above. The default scopes set by this middleware are create_payment and payment_details.