mumukit-login 7.6.2 → 7.7.0

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
  SHA256:
3
- metadata.gz: 2efd8e677fabfb8edae55cf68abb83a49d5213c2ff2c0b05f1acb5d10b3bbc72
4
- data.tar.gz: dacd052d274539b114dafc14cbb0b775a0e7af286cabb57cdbd2608f1892630a
3
+ metadata.gz: a5f395ab9f8be2d3b5ab22e1969cd37395fad3aa33e3c153c0da2a2bac776741
4
+ data.tar.gz: 07fd22f1023d3059dc5849615139b7623f13b7030b2dfc422257cc28f283c63c
5
5
  SHA512:
6
- metadata.gz: 39fd10b724bf967142030f87f923bb7f3356515c62c37bed1a0531555aa4366ee1d518b65dfeb899b4dd42c5520bb523bf7fd8e4d5d545085b1e853cee2e8745
7
- data.tar.gz: 687332dce91c9c01b989ea19ed70c644f85c73784b9c97d25ecbf9b37e1e29a9d717c28052b8ff20bac64940e2165e659c9c8705be4104cb226ebde07fd9ac5e
6
+ metadata.gz: 732e40f632086af5ad495ae2eccb9d2f4170b1914301053812af513a3483960878f26fe586439d46e8fc78f558afa75f714dad3d4c9b0e4dacb0082ad89c50db
7
+ data.tar.gz: 763e7ac95f0be2f0fceb942b1d3be5ef54e587d3c7a048c72b295c879b619bcc45d43bcda35bf78771051d324540dc3599a297c1d76b3f86026e4388edfe4152
@@ -1,4 +1,5 @@
1
1
  module Mumukit::Login::LoginControllerHelpers
2
+ delegate :redirect_after_logout!, to: :origin_redirector
2
3
 
3
4
  def login_current_user!
4
5
  mumukit_controller.mucookie.write!(:login_organization, organization_name)
@@ -19,8 +20,7 @@ module Mumukit::Login::LoginControllerHelpers
19
20
 
20
21
  def logout_current_user!
21
22
  destroy_current_user_session!
22
- login_provider.destroy_session! mumukit_controller
23
- origin_redirector.redirect_after_logout!
23
+ login_provider.logout_current_user! self
24
24
  end
25
25
 
26
26
  private
@@ -17,9 +17,7 @@ class Mumukit::Login::OriginRedirector
17
17
  @controller.session[:redirect_after_login] = origin
18
18
  end
19
19
 
20
- private
21
-
22
20
  def origin
23
21
  Addressable::URI.heuristic_parse(@controller.request.params['origin'] || '/').to_s
24
22
  end
25
- end
23
+ end
@@ -45,7 +45,8 @@ class Mumukit::Login::Provider::Base
45
45
  nil
46
46
  end
47
47
 
48
- def destroy_session!(_controller)
48
+ def logout_current_user!(controller)
49
+ controller.redirect_after_logout!
49
50
  end
50
51
 
51
52
  def setup_proc
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '7.6.2'
3
+ VERSION = '7.7.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-login
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.2
4
+ version: 7.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-12 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler