mumukit-login 6.1.8 → 6.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
  SHA256:
3
- metadata.gz: 632c6704414c94533352594f5a7c70ba889524fa22533313f01f0aebfbdc1ac8
4
- data.tar.gz: 0c96e4ceb17f969fea26439b64446eae1606bca150e9dde22d8a97a8786cb2fe
3
+ metadata.gz: 98a58c54fb727d1043865ff9a80c288e9db0d3c5a86e07135f5296f54edc8682
4
+ data.tar.gz: eea9e88bedd8e22cc6567179a7b68324d93d653214110f6791662a5db1bb1b1a
5
5
  SHA512:
6
- metadata.gz: 05c6a7ace37409cdc5be671e1f47d90efe942269d4be4c1e58d79b3f37eed79638601ef5797c469bb8271680eea4a363e413c7e5c891eeb829e93a2c336b786e
7
- data.tar.gz: c7d16838e27203ecd2bc75b699f866dab835702c5961d680bd7e088ad335d7531b5e914ddfbe493892df78e57688e99e39b2c560fca936003ef436a2921f7e3c
6
+ metadata.gz: 1782e1f6a12158a45fdf133ff570f395cdb552a93207768d7fb14c98fa003153f67e8ba10aa5e52940ab7ee24e70be832b2c7e897774c8a6cecb313e5c0f792d
7
+ data.tar.gz: 220ece34cddbbad92765a620014d44e66c5a97ee79a09e10fda03efee41e1059e3fc5a65b967b295c6a1275aecf689ca15dc332836f986ded2db15328ef6d14c
@@ -49,6 +49,9 @@ class Mumukit::Login::Mucookie
49
49
  end
50
50
 
51
51
  module Encryptor
52
+ # message encryptor requires a 32-byte key
53
+ MESSAGE_ENCRYPTOR_SECRET_SIZE = 32
54
+
52
55
  def self.key_generator
53
56
  @key_generator ||= begin
54
57
  secret_key = Mumukit::Login.config.mucookie_secret_key
@@ -67,7 +70,7 @@ class Mumukit::Login::Mucookie
67
70
  raise 'missing Mumukit::Login.config.mucookie_secret_salt' unless mucookie_secret_salt
68
71
  raise 'missing Mumukit::Login.config.mucookie_sign_salt' unless mucookie_sign_salt
69
72
 
70
- secret = key_generator.generate_key(mucookie_secret_salt)
73
+ secret = key_generator.generate_key(mucookie_secret_salt, MESSAGE_ENCRYPTOR_SECRET_SIZE)
71
74
  signature = key_generator.generate_key(mucookie_sign_salt)
72
75
  ActiveSupport::MessageEncryptor.new(secret, signature)
73
76
  end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '6.1.8'
3
+ VERSION = '6.1.9'
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: 6.1.8
4
+ version: 6.1.9
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: 2018-11-22 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: jwt
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.5'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.5'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: addressable
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -280,8 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
294
  - !ruby/object:Gem::Version
281
295
  version: '0'
282
296
  requirements: []
283
- rubyforge_project:
284
- rubygems_version: 2.7.8
297
+ rubygems_version: 3.0.3
285
298
  signing_key:
286
299
  specification_version: 4
287
300
  summary: Library for login mumuki requests