0.0
No commit activity in last 3 years
No release in over 3 years
OmniAuth strategy for Cortex's OAuth 2.0 implementation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.6
~> 11.1
~> 3.4
~> 0.11
~> 1.24

Runtime

 Project Readme

omniauth-cortex

Build Status Dependency Status

OmniAuth strategy for Cortex's OAuth 2.0 implementation.

omniauth-github was used as a helpful model for this project.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-cortex'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-cortex

Usage

use OmniAuth::Builder do
  provider :cortex, ENV['CORTEX_KEY'], ENV['CORTEX_SECRET'], scope: 'scope1, scope2, scope3'
end

Override Environment

If you would like to change the URLs used by omniauth-cortex, override :client_options in the provider config step.

provider :cortex, ENV['CORTEX_KEY'], ENV['CORTEX_SECRET'], scope: 'scope1, scope2, scope3',
  {
    :client_options => {
      :site => 'http://localhost:3000/api/v1',
      :authorize_url => 'http://localhost:3000/oauth/authorize',
      :token_url => 'http://localhost:3000/oauth/token'
    }
  }