omniauth-campus 6.3 → 6.4
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 +3 -5
- 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: 0c9b53bc2d2b6e9ef672113b62189c2a273b57fb
|
4
|
+
data.tar.gz: 7fe5e016be80ff6fd23e45364735a0cf26140439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb843cf4c4065670d27122a4e569ceabf77b6b544aaaf6b12db072c28437968294c005a5c8a5cd94d08ae7e44ac2d21ff2dfec4c75fd0e6dcf71a2b45b16b73a
|
7
|
+
data.tar.gz: dabd50bd2ec27258b4e2c16dfbe079c1916e65fae0a856eca7c9501adb4bd40878f133a0ec7b9237a5dc0e5a6062f8ad6a64d17fb2bf6c32e2e8a8aed43fe73a
|
@@ -33,11 +33,10 @@ module OmniAuth
|
|
33
33
|
#:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
|
34
34
|
|
35
35
|
|
36
|
-
uid
|
36
|
+
uid{access_token.params['uid']}
|
37
37
|
|
38
38
|
info do {
|
39
|
-
:name => raw_info['name']
|
40
|
-
:mail => raw_info['mail']
|
39
|
+
:name => raw_info['name']
|
41
40
|
}
|
42
41
|
end
|
43
42
|
|
@@ -47,8 +46,7 @@ module OmniAuth
|
|
47
46
|
end
|
48
47
|
|
49
48
|
def raw_info
|
50
|
-
|
51
|
-
@raw_info ||= MultiJson.decode(access_token.get("/myawesomejson/user.json").body)
|
49
|
+
@raw_info ||= MultiJson.decode(access_token.get("#{options[:client_options][:site]}/myawesomejson/user.json").body)
|
52
50
|
rescue ::Errno::ETIMEDOUT
|
53
51
|
raise ::Timeout::Error
|
54
52
|
end
|