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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97f0f81fca6f5cb5756a015e27c5d8f496d6bf66
4
- data.tar.gz: a678aa6e05ada1f6e1c793dbe12d0020d88abe96
3
+ metadata.gz: 00e462e331c38b648ddb3242ac5333cba9e6f18d
4
+ data.tar.gz: 6437195c2eace50e0913e2e079a53e07d64fc8ea
5
5
  SHA512:
6
- metadata.gz: d97f48ce8f77c6b59a5e2f9816d83c38d5fc844cf4f93d9f724cc8dc034fe10ac7728e296edd1a297a90b80aefdceebf0bb47b362ae11811a1c112f42cbe641a
7
- data.tar.gz: 64a363e88ff7871bb736b7b11b04d15b35b2a8953348ac080c9d33c0d993c244c305bd9d7621e34c871e5120287893ff0ec6451988ec3bbfe3f83a91d3809efa
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
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Edumall
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-edumall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - hoptq