Sha256: 292e2659cafb9406f3baf352d2cd70ff86bdf155a17d6c7d4809a1caffb6c3a0
Contents?: true
Size: 868 Bytes
Versions: 1
Compression:
Stored size: 868 Bytes
Contents
# OmniAuth::Cortex OmniAuth strategy for Cortex's OAuth 2.0 implementation ## 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 ```ruby 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. ```ruby 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/access_token' } } ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-cortex-0.0.1 | README.md |