omniauth-riskalyze 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/riskalyze/version.rb +1 -1
- data/lib/omniauth/strategies/riskalyze.rb +3 -10
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81c4175a0417bf5837602c776dd975e44c33aa08
|
4
|
+
data.tar.gz: dbe20c48ed1b8c0c05fa65cb35bd7379afc4145a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac1d0fbd5d4695132d13e1d228167ae21bb97d81f444eb62c8908f2552d0d5d4d266a066187def02b997012ae3b48592134648dd4e81d68d7ae2a16904cf1e7
|
7
|
+
data.tar.gz: b43b09a3c9746f6f59cfb1d45051ffe66c84a3878b13b5bbd4e741d53acc14479f54becefcde61e07f6a37e120acc4f342824069dc41ebf69549a286e5c99192
|
@@ -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
|
-
|
39
|
-
|
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
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.
|
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-
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|