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 +4 -4
- data/lib/mumukit/login/mucookie.rb +4 -1
- data/lib/mumukit/login/version.rb +1 -1
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98a58c54fb727d1043865ff9a80c288e9db0d3c5a86e07135f5296f54edc8682
|
4
|
+
data.tar.gz: eea9e88bedd8e22cc6567179a7b68324d93d653214110f6791662a5db1bb1b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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
|
-
|
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
|