omniauth-tendril 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,12 @@ module OmniAuth
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def raw_info
|
41
|
+
@raw_info ||= MultiJson.decode user_info_request
|
42
|
+
end
|
43
|
+
|
44
|
+
protected
|
45
|
+
|
46
|
+
def user_info_request
|
41
47
|
conn = Faraday.new('https://dev.tendrilinc.com')
|
42
48
|
response = conn.get do |req|
|
43
49
|
req.url '/connect/user/current-user'
|
@@ -45,7 +51,7 @@ module OmniAuth
|
|
45
51
|
req.headers['Content-Type'] = 'application/json'
|
46
52
|
req.headers['Access_Token'] = access_token.token
|
47
53
|
end
|
48
|
-
|
54
|
+
response.env[:body]
|
49
55
|
end
|
50
56
|
|
51
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-tendril
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|