keypairs 1.2.0 → 1.3.1

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: d319e3dfd424fc39049c607a4e2ac02426beba0da6dc8020ee1efd7acd9275a6
4
- data.tar.gz: d46bd9d4a0ca9539a00a413f75b0c33141594b57a5912917b5f849dff1407244
3
+ metadata.gz: f9a566420b6d4de74512b298c61dfef0674d28c21d42f68a7982f6b45180877e
4
+ data.tar.gz: 8f37ce5a303975bc0076ab1f9b5b480b7c6b6eac12414a6ab8af1efc9fa6ecff
5
5
  SHA512:
6
- metadata.gz: 064cc0e1906b0508711b8e1b11f2609df92a8798e5baa31aa99eb73548e6a884e1b8fc29642dfc53c05fa4f6d565eacefeb7a5d9c668ae7680a2c61e3be4aa30
7
- data.tar.gz: cfa16d1c56ce1686d1611ce4ffc159d59c22ccbebe6450add4acc547e17dbda46f8b027842ff30d1d2b98b608c528c68359eb65ccc21ef00ccdd117f8bb258a7
6
+ metadata.gz: f12e76d5246cf84ad5bbe1df70bfb0223e0ddc0f8b9c639980788bbf09b7dc6a4b1b28f8e6d38a823920624724d68a661173df258837f26feb6379f8c8b49087
7
+ data.tar.gz: 5632b282782f4f5bbac7224d289771cbc78139034924efbe755b8f3419ff920b0ef68d65b5fcb1f435f1cc057d6c18794eff910b019a2395bd81a16ba17fc24d
data/lib/keypair.rb CHANGED
@@ -38,7 +38,7 @@ class Keypair < ActiveRecord::Base
38
38
  ALGORITHM = 'RS256'
39
39
  ROTATION_INTERVAL = 1.month
40
40
 
41
- lockbox_encrypts :_keypair
41
+ has_encrypted :_keypair
42
42
 
43
43
  validates :_keypair, presence: true
44
44
  validates :jwk_kid, presence: true
@@ -145,11 +145,7 @@ class Keypair < ActiveRecord::Base
145
145
 
146
146
  # Expiration time on or after which the tool MUST NOT accept the ID Token for
147
147
  # processing (epoch). This is mostly used to allow some clock skew.
148
- exp: Time.now.to_i + 5.minutes.to_i,
149
-
150
- # String value used to associate a tool session with an ID Token, and to mitigate replay
151
- # attacks. The nonce value is a case-sensitive string.
152
- nonce: SecureRandom.uuid
148
+ exp: Time.now.to_i + 5.minutes.to_i
153
149
  )
154
150
 
155
151
  # Add additional info into the headers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Keypairs
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keypairs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stef Schenkelaars
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-23 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '6.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '6.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: activerecord
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -31,6 +37,9 @@ dependencies:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '6.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '8'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,6 +47,9 @@ dependencies:
38
47
  - - ">="
39
48
  - !ruby/object:Gem::Version
40
49
  version: '6.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '8'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: jwt
43
55
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +70,14 @@ dependencies:
58
70
  requirements:
59
71
  - - "~>"
60
72
  - !ruby/object:Gem::Version
61
- version: '0.4'
73
+ version: '1.3'
62
74
  type: :runtime
63
75
  prerelease: false
64
76
  version_requirements: !ruby/object:Gem::Requirement
65
77
  requirements:
66
78
  - - "~>"
67
79
  - !ruby/object:Gem::Version
68
- version: '0.4'
80
+ version: '1.3'
69
81
  - !ruby/object:Gem::Dependency
70
82
  name: appraisal
71
83
  requirement: !ruby/object:Gem::Requirement
@@ -271,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
283
  - !ruby/object:Gem::Version
272
284
  version: '0'
273
285
  requirements: []
274
- rubygems_version: 3.3.7
286
+ rubygems_version: 3.4.10
275
287
  signing_key:
276
288
  specification_version: 4
277
289
  summary: Manage application level keypairs with automatic rotation and JWT support