mumukit-login 7.4.3 → 7.6.2

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: fd902bc892d6881295171b8ddd9502f0ec70da727ade976edb0d399556196f54
4
- data.tar.gz: 0e82d8fb0dce8e82ed39ddc2793722446a3f2e10c39f6e021bb55a3cd5004470
3
+ metadata.gz: 2efd8e677fabfb8edae55cf68abb83a49d5213c2ff2c0b05f1acb5d10b3bbc72
4
+ data.tar.gz: dacd052d274539b114dafc14cbb0b775a0e7af286cabb57cdbd2608f1892630a
5
5
  SHA512:
6
- metadata.gz: b281525c1d8d326de527da48a88440dd3427c43440b8a8306a22cb9701d741a464e610520143999a87193d928bdf41ba826b384e07e8223da590fc35f6618f57
7
- data.tar.gz: dd697f2ec90429d7d589d8d5585bdfbd7d2ac46789ec387c961fc381b231fea667c7036fb63eadd8b6e1bbf70f3603dbf0ed860b6c265f12fae3a35b8ca5c3f5
6
+ metadata.gz: 39fd10b724bf967142030f87f923bb7f3356515c62c37bed1a0531555aa4366ee1d518b65dfeb899b4dd42c5520bb523bf7fd8e4d5d545085b1e853cee2e8745
7
+ data.tar.gz: 687332dce91c9c01b989ea19ed70c644f85c73784b9c97d25ecbf9b37e1e29a9d717c28052b8ff20bac64940e2165e659c9c8705be4104cb226ebde07fd9ac5e
@@ -15,5 +15,11 @@ module Mumukit::Login::AuthorizationHelpers
15
15
  current_user.has_permission? role, authorization_slug
16
16
  end
17
17
 
18
+ Mumukit::Auth::Roles::ROLES.each do |role|
19
+ define_method "authorize_#{role}!" do
20
+ authorize! role
21
+ end
22
+ end
23
+
18
24
  required :authorization_slug
19
25
  end
@@ -28,9 +28,11 @@ HTML
28
28
  end
29
29
 
30
30
  def footer_html(*)
31
- '<a href="https://auth0.com/" target="_blank">
31
+ '<div class="mu-footer-login-provider">
32
+ <a href="https://auth0.com/" target="_blank">
32
33
  <img height="40" alt="JWT Auth for open source projects" src="//cdn.auth0.com/oss/badges/a0-badge-light.png"/>
33
- </a>'
34
+ </a>
35
+ </div>'
34
36
  end
35
37
 
36
38
  private
@@ -29,6 +29,15 @@ module OmniAuth
29
29
  result
30
30
  end
31
31
  end
32
+
33
+ def service_validate_url(service_url, ticket)
34
+ service_url = Addressable::URI.parse(service_url)
35
+ service_url.query_values = service_url.query_values.tap { |qs| qs.delete('ticket') }
36
+ cas_url + append_params(options.service_validate_url, {
37
+ service: service_url.to_s.sub(/\?$/, ''),
38
+ ticket: ticket
39
+ })
40
+ end
32
41
  end
33
42
  end
34
43
  end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '7.4.3'
3
+ VERSION = '7.6.2'
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.4.3
4
+ version: 7.6.2
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: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2021-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '5.0'
229
+ version: '7.0'
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '5.0'
236
+ version: '7.0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: actionpack
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0'
307
307
  requirements: []
308
- rubygems_version: 3.0.8
308
+ rubygems_version: 3.0.3
309
309
  signing_key:
310
310
  specification_version: 4
311
311
  summary: Library for login mumuki requests