omniauth-campus 6.1 → 6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-campus/version.rb +1 -1
- data/lib/omniauth/strategies/campus.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ef695f40e27f2658d62b5939cece67db7bc403
|
4
|
+
data.tar.gz: 56bd483e94852a3bf96afd9922625c6db5646da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4aaa01f33f87c8cd3e61d9a460c9873cae8f6347c0b77e58e274d41b0e86f1b21b8b0ef087f188bb8ed8680904103f49d215ff6c4314573457adfa8d37bb011
|
7
|
+
data.tar.gz: f28d77c73efb1db6ae9ead87915ea01771cbdaf02e3765eae8d379df85cf23eff0894f2c2beef6fb6429a77f194dda10ae1dfbf7d30098385914a7d45f239cf9
|
@@ -22,7 +22,8 @@ module OmniAuth
|
|
22
22
|
#:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
|
23
23
|
:request_token_path => '/oauth/request_token',
|
24
24
|
:access_token_path => '/oauth/access_token',
|
25
|
-
:authorize_path => '/oauth/authorize'
|
25
|
+
:authorize_path => '/oauth/authorize',
|
26
|
+
:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
|
26
27
|
}
|
27
28
|
|
28
29
|
option :name, "campus"
|
@@ -33,7 +34,7 @@ module OmniAuth
|
|
33
34
|
#:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
|
34
35
|
|
35
36
|
|
36
|
-
uid {
|
37
|
+
uid { access_token.params['uid'] }
|
37
38
|
|
38
39
|
info do {
|
39
40
|
:name => raw_info['name']
|
@@ -46,7 +47,7 @@ module OmniAuth
|
|
46
47
|
end
|
47
48
|
|
48
49
|
def raw_info
|
49
|
-
@raw_info ||= MultiJson.decode(access_token.get("http://dev-oauth-test.gotpantheon.com/myawesomejson/user").body)
|
50
|
+
@raw_info ||= MultiJson.decode(access_token.get("http://dev-oauth-test.gotpantheon.com/myawesomejson/user.json").body)
|
50
51
|
#@raw_info ||= MultiJson.decode(access_token.get("/myawesomejson/user.json").body)
|
51
52
|
rescue ::Errno::ETIMEDOUT
|
52
53
|
raise ::Timeout::Error
|