jwt_auth_cognito 0.1.1 → 1.0.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +78 -0
- data/BITBUCKET-DEPLOYMENT.md +290 -0
- data/CHANGELOG.md +65 -0
- data/CLAUDE.md +189 -9
- data/Gemfile +5 -5
- data/README.md +147 -1
- data/Rakefile +108 -5
- data/VERSIONING.md +244 -0
- data/bitbucket-pipelines.yml +273 -0
- data/jwt_auth_cognito.gemspec +42 -39
- data/lib/generators/jwt_auth_cognito/install_generator.rb +25 -25
- data/lib/jwt_auth_cognito/api_key_validator.rb +79 -0
- data/lib/jwt_auth_cognito/configuration.rb +38 -21
- data/lib/jwt_auth_cognito/error_utils.rb +110 -0
- data/lib/jwt_auth_cognito/jwks_service.rb +46 -50
- data/lib/jwt_auth_cognito/jwt_validator.rb +319 -92
- data/lib/jwt_auth_cognito/railtie.rb +3 -3
- data/lib/jwt_auth_cognito/redis_service.rb +90 -51
- data/lib/jwt_auth_cognito/ssm_service.rb +109 -0
- data/lib/jwt_auth_cognito/token_blacklist_service.rb +10 -12
- data/lib/jwt_auth_cognito/user_data_service.rb +332 -0
- data/lib/jwt_auth_cognito/version.rb +2 -2
- data/lib/jwt_auth_cognito.rb +42 -10
- data/lib/tasks/jwt_auth_cognito.rake +69 -70
- metadata +63 -26
metadata
CHANGED
@@ -1,17 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwt_auth_cognito
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Optimal
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: aws-sdk-ssm
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - "~>"
|
@@ -25,25 +39,19 @@ dependencies:
|
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '2.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
42
|
+
name: jwt
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 4.2.5
|
34
|
-
- - "<"
|
45
|
+
- - "~>"
|
35
46
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
47
|
+
version: '2.0'
|
37
48
|
type: :runtime
|
38
49
|
prerelease: false
|
39
50
|
version_requirements: !ruby/object:Gem::Requirement
|
40
51
|
requirements:
|
41
|
-
- - "
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 4.2.5
|
44
|
-
- - "<"
|
52
|
+
- - "~>"
|
45
53
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
54
|
+
version: '2.0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: openssl
|
49
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,21 +67,27 @@ dependencies:
|
|
59
67
|
- !ruby/object:Gem::Version
|
60
68
|
version: 2.1.0
|
61
69
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
70
|
+
name: redis
|
63
71
|
requirement: !ruby/object:Gem::Requirement
|
64
72
|
requirements:
|
65
|
-
- - "
|
73
|
+
- - ">="
|
66
74
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
75
|
+
version: 4.2.5
|
76
|
+
- - "<"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '6.0'
|
68
79
|
type: :runtime
|
69
80
|
prerelease: false
|
70
81
|
version_requirements: !ruby/object:Gem::Requirement
|
71
82
|
requirements:
|
72
|
-
- - "
|
83
|
+
- - ">="
|
73
84
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
85
|
+
version: 4.2.5
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '6.0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
90
|
+
name: aws-sdk-core
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
93
|
- - "~>"
|
@@ -120,6 +134,20 @@ dependencies:
|
|
120
134
|
- - "~>"
|
121
135
|
- !ruby/object:Gem::Version
|
122
136
|
version: '13.0'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: rspec
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '3.0'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '3.0'
|
123
151
|
- !ruby/object:Gem::Dependency
|
124
152
|
name: rubocop
|
125
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,6 +187,8 @@ extra_rdoc_files:
|
|
159
187
|
- CHANGELOG.md
|
160
188
|
- LICENSE.txt
|
161
189
|
files:
|
190
|
+
- ".rubocop.yml"
|
191
|
+
- BITBUCKET-DEPLOYMENT.md
|
162
192
|
- CHANGELOG.md
|
163
193
|
- CLAUDE.md
|
164
194
|
- Gemfile
|
@@ -166,16 +196,22 @@ files:
|
|
166
196
|
- PUBLISH_GUIDE.md
|
167
197
|
- README.md
|
168
198
|
- Rakefile
|
199
|
+
- VERSIONING.md
|
200
|
+
- bitbucket-pipelines.yml
|
169
201
|
- jwt_auth_cognito.gemspec
|
170
202
|
- lib/generators/jwt_auth_cognito/install_generator.rb
|
171
203
|
- lib/generators/jwt_auth_cognito/templates/jwt_auth_cognito.rb.erb
|
172
204
|
- lib/jwt_auth_cognito.rb
|
205
|
+
- lib/jwt_auth_cognito/api_key_validator.rb
|
173
206
|
- lib/jwt_auth_cognito/configuration.rb
|
207
|
+
- lib/jwt_auth_cognito/error_utils.rb
|
174
208
|
- lib/jwt_auth_cognito/jwks_service.rb
|
175
209
|
- lib/jwt_auth_cognito/jwt_validator.rb
|
176
210
|
- lib/jwt_auth_cognito/railtie.rb
|
177
211
|
- lib/jwt_auth_cognito/redis_service.rb
|
212
|
+
- lib/jwt_auth_cognito/ssm_service.rb
|
178
213
|
- lib/jwt_auth_cognito/token_blacklist_service.rb
|
214
|
+
- lib/jwt_auth_cognito/user_data_service.rb
|
179
215
|
- lib/jwt_auth_cognito/version.rb
|
180
216
|
- lib/tasks/jwt_auth_cognito.rake
|
181
217
|
homepage: https://github.com/theoptimal/jwt-auth-cognito
|
@@ -188,7 +224,8 @@ metadata:
|
|
188
224
|
changelog_uri: https://github.com/theoptimal/jwt-auth-cognito/blob/main/CHANGELOG.md
|
189
225
|
documentation_uri: https://www.rubydoc.info/gems/jwt_auth_cognito
|
190
226
|
bug_tracker_uri: https://github.com/theoptimal/jwt-auth-cognito/issues
|
191
|
-
|
227
|
+
rubygems_mfa_required: 'true'
|
228
|
+
post_install_message:
|
192
229
|
rdoc_options:
|
193
230
|
- "--charset=UTF-8"
|
194
231
|
require_paths:
|
@@ -200,12 +237,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
237
|
version: 2.7.0
|
201
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
239
|
requirements:
|
203
|
-
- - "
|
240
|
+
- - ">"
|
204
241
|
- !ruby/object:Gem::Version
|
205
|
-
version:
|
242
|
+
version: 1.3.1
|
206
243
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
208
|
-
signing_key:
|
244
|
+
rubygems_version: 3.3.27
|
245
|
+
signing_key:
|
209
246
|
specification_version: 4
|
210
247
|
summary: Validación offline de JWT con AWS Cognito y blacklist Redis
|
211
248
|
test_files: []
|