omniauth-hubspot 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/hubspot/version.rb +1 -1
- data/lib/omniauth/strategies/hubspot.rb +7 -9
- 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: 78a5a47e22c104047988a6e3d8e23cec22040eb9
|
4
|
+
data.tar.gz: c81863071a94edc7f9a133f33b11806c969d93aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c0bf58cccbf636ad500f5852965c099072c853cc6226d2a6fe4c39da4d988fd8d445775a8a706de20304e3896734a135dc137d047c30e50775ac33c724e937
|
7
|
+
data.tar.gz: 4b629b446225b3e3b2c6891dfb48675182d08a03920fc63dab69c8f68cb462da5a49c2b71f9b7421ee8f105607fac5eaa2c36580c7328920227fd3ea3cbb5e26
|
@@ -16,9 +16,6 @@ module OmniAuth
|
|
16
16
|
|
17
17
|
option :authorize_options, [:scope, :portalId]
|
18
18
|
|
19
|
-
attr_accessor :refresh_token
|
20
|
-
attr_accessor :expires_in
|
21
|
-
|
22
19
|
def callback_phase
|
23
20
|
if request.params['error'] || request.params['error_reason']
|
24
21
|
raise CallbackError.new(request.params['error'], request.params['error_description'] || request.params['error_reason'], request.params['error_uri'])
|
@@ -27,9 +24,10 @@ module OmniAuth
|
|
27
24
|
raise CallbackError.new(nil, :csrf_detected)
|
28
25
|
end
|
29
26
|
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
hash = {'token' = request.params[:access_token]}
|
28
|
+
hash.merge!('refresh_token' = request.params[:refresh_token])
|
29
|
+
hash.merge!('expires_in' = request.params[:expires_in])
|
30
|
+
self.access_token = hash
|
33
31
|
|
34
32
|
self.env['omniauth.auth'] = auth_hash
|
35
33
|
call_app!
|
@@ -44,9 +42,9 @@ module OmniAuth
|
|
44
42
|
end
|
45
43
|
|
46
44
|
credentials do
|
47
|
-
hash = {'token' => access_token}
|
48
|
-
hash.merge!('refresh_token' => refresh_token)
|
49
|
-
hash.merge!('expires_in' => expires_in)
|
45
|
+
hash = {'token' => access_token['token']}
|
46
|
+
hash.merge!('refresh_token' => access_token['refresh_token'])
|
47
|
+
hash.merge!('expires_in' => access_token['expires_in'])
|
50
48
|
hash
|
51
49
|
end
|
52
50
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-hubspot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Arnold
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|