omniauth-riskalyze 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1ace6f5b3baac882ac990e9401382b87b768755
4
- data.tar.gz: 6c5b7938f1c1ee894691db9c474142266708bfa9
3
+ metadata.gz: 81c4175a0417bf5837602c776dd975e44c33aa08
4
+ data.tar.gz: dbe20c48ed1b8c0c05fa65cb35bd7379afc4145a
5
5
  SHA512:
6
- metadata.gz: 63a283f9b233776473859fdc3ff7678b2459aefd843410156623777855e8fd8f93c0aa4424e4d564e5d464dfeaeab9752ad54a22ecdb361720a4120db83e0015
7
- data.tar.gz: bec15c7ce57de87ef8d1eaf9b59b52e7768b701d06c2c13083051095dfff324259f436009f479cd1861b7846fa40619dc2acbd75e181d467f2d4ab24bdeea1ec
6
+ metadata.gz: 7ac1d0fbd5d4695132d13e1d228167ae21bb97d81f444eb62c8908f2552d0d5d4d266a066187def02b997012ae3b48592134648dd4e81d68d7ae2a16904cf1e7
7
+ data.tar.gz: b43b09a3c9746f6f59cfb1d45051ffe66c84a3878b13b5bbd4e741d53acc14479f54becefcde61e07f6a37e120acc4f342824069dc41ebf69549a286e5c99192
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Riskalyze
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
@@ -3,8 +3,6 @@ require 'omniauth-oauth2'
3
3
  module OmniAuth
4
4
  module Strategies
5
5
  class Riskalyze < OmniAuth::Strategies::OAuth2
6
- DEFAULT_SCOPE = 'profile'
7
-
8
6
  option :client_options, {
9
7
  site: 'https://api.riskalyze.com',
10
8
  authorize_url: 'https://pro.riskalyze.com/oauthconnect',
@@ -34,14 +32,9 @@ module OmniAuth
34
32
  end
35
33
 
36
34
  def request_phase
37
- options[:authorize_params] = {
38
- client_id: options['client_id'],
39
- response_type: 'code',
40
- }
41
-
42
- options[:authorize_params][:scope] = options['scope'] unless options['scope'].to_s.nil?
43
- options[:authorize_params][:redirect_uri] = options['redirect_uri'] unless options['redirect_uri'].to_s.nil?
44
-
35
+ options[:authorize_params] = { client_id: options['client_id'], response_type: 'code' }
36
+ options[:authorize_params][:redirect_uri] = options['redirect_uri'] unless options['redirect_uri'].to_s.empty?
37
+ options[:authorize_params][:scope] = options['scope'] unless options['scope'].to_s.empty?
45
38
  super
46
39
  end
47
40
  end
data/spec/spec_helper.rb CHANGED
@@ -9,5 +9,5 @@ require 'omniauth'
9
9
  require 'omniauth-riskalyze'
10
10
 
11
11
  RSpec.configure do |config|
12
- config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
12
+ config.extend OmniAuth::Test::StrategyMacros, type: :strategy
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-riskalyze
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-03 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth