omniauth-campus 6.2 → 6.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/strategies/campus.rb +6 -6
- data/lib/omniauth-campus/version.rb +1 -1
- 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: c510e481bea45151b0ef68463ee248f75a49e91e
|
4
|
+
data.tar.gz: ddadf4b9c7aaa87d29091a3bfcf0c25805f8d7fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43661610916f725df5d8b4f81a4351a490d854c40cdd6c070a9cbaa2f9b16d6fd10abbff03d8ad5ac86f8bebcee4ba4010f330cf74d9dfaac69c7f80dedee3fc
|
7
|
+
data.tar.gz: b58df18b655491c9aecb3f154c2a1a50a018240f149a60784e19606e8fe72af5120f8c272740c9d0f89498307aca2564d1b746cae45f06e4514413d5a53fd63e
|
@@ -22,8 +22,7 @@ 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'
|
26
|
-
:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
|
25
|
+
:authorize_path => '/oauth/authorize'
|
27
26
|
}
|
28
27
|
|
29
28
|
option :name, "campus"
|
@@ -34,10 +33,11 @@ module OmniAuth
|
|
34
33
|
#:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
|
35
34
|
|
36
35
|
|
37
|
-
uid {
|
36
|
+
uid { raw_info['uid'] }
|
38
37
|
|
39
38
|
info do {
|
40
|
-
:name => raw_info['name']
|
39
|
+
:name => raw_info['name'],
|
40
|
+
:mail => raw_info['mail']
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
@@ -47,8 +47,8 @@ module OmniAuth
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def raw_info
|
50
|
-
|
51
|
-
|
50
|
+
#@raw_info ||= MultiJson.decode(access_token.get("#{options[:client_options][:site]}/myawesomejson/user.json").body)
|
51
|
+
@raw_info ||= MultiJson.decode(access_token.get("/myawesomejson/user.json").body)
|
52
52
|
rescue ::Errno::ETIMEDOUT
|
53
53
|
raise ::Timeout::Error
|
54
54
|
end
|