omniauth-edumall 0.1.8 → 0.1.9

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: ee10c85a41cc808cbf13c0f7abf9953fc83b571c
4
- data.tar.gz: 01824d712ce9add850918caad7feb31953d2bd2f
3
+ metadata.gz: 29be30e44740077d1c4325e798eb15b02e30d8b3
4
+ data.tar.gz: 49ce77d402cc8205a77121f1e3b1890f88343e70
5
5
  SHA512:
6
- metadata.gz: 8b9de4df2fb477b332e02badc0435e255e054909a3554d70493888030d3dfe8529619c81ff9cb84dc4d73c6d70edb043a4e8b9f8eb9dcfa25db8a2ea0d34a7cd
7
- data.tar.gz: 97fe67f40fd34783ad90482ec70a8916b5dfc5367acdb2e1febdb42288ec72e11d32d3e4c06d915e09945f8e93ab1c9026f8b68553122510097f7567273b1339
6
+ metadata.gz: 363f0409a2ecd6a83fbe6d1d06afc96c6ed9dffe865f82eca5ec17251ee436bb6807dd5b8ff2de2d000595601728999adc98cfa18a53a98b97e78e9b851135c1
7
+ data.tar.gz: 5653b16a524f2f4ce8cb6962103846e7027715f91e873b7e2177da83a2f8ac4baa915829afce54b9eb93f2bb580e4f07bf35d88eeb0c8311b014562e649cf07a
@@ -21,15 +21,9 @@ module Omniauth
21
21
  }
22
22
  end
23
23
 
24
- def logout
25
- RestClient.post("#{EDUMALL_SSO_URL}/auth/signout", {}) { |response, request, result, &block|
26
- case response.code
27
- when 200
28
- return true
29
- else
30
- return false
31
- end
32
- }
24
+ def logout(cookies)
25
+ cookies.delete :_provider_sso_session, domain: '.local.vn'
26
+ cookies.delete :edumall_access_token, domain: '.local.vn'
33
27
  end
34
28
  end
35
29
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Edumall
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-edumall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - hoptq
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-04 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2