omniauth-edumall 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/edumall/user.rb +3 -0
- data/lib/omniauth/edumall/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: 00e462e331c38b648ddb3242ac5333cba9e6f18d
|
4
|
+
data.tar.gz: 6437195c2eace50e0913e2e079a53e07d64fc8ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa0fa0da93f900358519065b33a3dcbfc7e5d76efd53071d2c6fff26a541b69c11be16aca541cd59789f4143417a549220a852052133a081c0e2f963ef3019e7
|
7
|
+
data.tar.gz: 754f081369c32909722de243d9e83a20487e0d8cf78e91826392f8704b5d161e312a8ff209cb8d15e36491c51b3949df987f09ef7a4f7ac5a063f6c93b7ec92c
|
@@ -9,6 +9,9 @@ module Omniauth
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def user_logged(cookies)
|
12
|
+
if user_logout?(cookies)
|
13
|
+
return {}
|
14
|
+
end
|
12
15
|
edumall_access_token = cookies[:edumall_access_token]
|
13
16
|
RestClient.get("#{EDUMALL_SSO_URL}/auth/sso/user.json?oauth_token=#{cookies[:edumall_access_token]}") { |response, request, result, &block|
|
14
17
|
case response.code
|