keycloak-api-rails 0.12.2 → 0.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +139 -104
- data/README.md +1 -1
- data/lib/keycloak-api-rails/middleware.rb +1 -1
- data/lib/keycloak-api-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 834cdb0350ed3724a6f28aed40c36b3a51d96850f49ef8a0b9946a8135f1ca56
|
4
|
+
data.tar.gz: 8ec6a52a53e688cb20feaf9762e17bde13fbbf483d0413bf95400833a79ac6e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 947afe4ef457d63988f592b16a57b9dd8bf7a58e7c6f403525e5a228a992c49d51262541cd5feb6b7c3c7722fd7390f7447fb698c273f359448ed3f46b3d2fd8
|
7
|
+
data.tar.gz: efb05a679ff2c389618534e975425276c9007651b495abc19a7f381116fe81fba490571e4d751cfbd69aa8a02c685d1738b543fabd99ca9fe07dcf9319a87701
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
|
9
|
+
## [0.12.3] - 2024-06-20
|
10
|
+
|
11
|
+
* Add a debug log when not being able to validate a JWT
|
12
|
+
|
8
13
|
## [0.12.2] - 2023-06-03
|
9
14
|
|
10
15
|
* Avoid methods `logger`, `service` an `config` of `Keycloak::Authentication` to conflict with other concerns, such as rails. (thanks to @mkrawc)
|
data/Gemfile.lock
CHANGED
@@ -1,104 +1,122 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
keycloak-api-rails (0.12.
|
4
|
+
keycloak-api-rails (0.12.3)
|
5
5
|
json-jwt (>= 1.11.0)
|
6
6
|
rails (>= 4.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (7.
|
12
|
-
actionpack (= 7.
|
13
|
-
activesupport (= 7.
|
11
|
+
actioncable (7.1.3.4)
|
12
|
+
actionpack (= 7.1.3.4)
|
13
|
+
activesupport (= 7.1.3.4)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
zeitwerk (~> 2.6)
|
17
|
+
actionmailbox (7.1.3.4)
|
18
|
+
actionpack (= 7.1.3.4)
|
19
|
+
activejob (= 7.1.3.4)
|
20
|
+
activerecord (= 7.1.3.4)
|
21
|
+
activestorage (= 7.1.3.4)
|
22
|
+
activesupport (= 7.1.3.4)
|
22
23
|
mail (>= 2.7.1)
|
23
24
|
net-imap
|
24
25
|
net-pop
|
25
26
|
net-smtp
|
26
|
-
actionmailer (7.
|
27
|
-
actionpack (= 7.
|
28
|
-
actionview (= 7.
|
29
|
-
activejob (= 7.
|
30
|
-
activesupport (= 7.
|
27
|
+
actionmailer (7.1.3.4)
|
28
|
+
actionpack (= 7.1.3.4)
|
29
|
+
actionview (= 7.1.3.4)
|
30
|
+
activejob (= 7.1.3.4)
|
31
|
+
activesupport (= 7.1.3.4)
|
31
32
|
mail (~> 2.5, >= 2.5.4)
|
32
33
|
net-imap
|
33
34
|
net-pop
|
34
35
|
net-smtp
|
35
|
-
rails-dom-testing (~> 2.
|
36
|
-
actionpack (7.
|
37
|
-
actionview (= 7.
|
38
|
-
activesupport (= 7.
|
39
|
-
|
36
|
+
rails-dom-testing (~> 2.2)
|
37
|
+
actionpack (7.1.3.4)
|
38
|
+
actionview (= 7.1.3.4)
|
39
|
+
activesupport (= 7.1.3.4)
|
40
|
+
nokogiri (>= 1.8.5)
|
41
|
+
racc
|
42
|
+
rack (>= 2.2.4)
|
43
|
+
rack-session (>= 1.0.1)
|
40
44
|
rack-test (>= 0.6.3)
|
41
|
-
rails-dom-testing (~> 2.
|
42
|
-
rails-html-sanitizer (~> 1.
|
43
|
-
actiontext (7.
|
44
|
-
actionpack (= 7.
|
45
|
-
activerecord (= 7.
|
46
|
-
activestorage (= 7.
|
47
|
-
activesupport (= 7.
|
45
|
+
rails-dom-testing (~> 2.2)
|
46
|
+
rails-html-sanitizer (~> 1.6)
|
47
|
+
actiontext (7.1.3.4)
|
48
|
+
actionpack (= 7.1.3.4)
|
49
|
+
activerecord (= 7.1.3.4)
|
50
|
+
activestorage (= 7.1.3.4)
|
51
|
+
activesupport (= 7.1.3.4)
|
48
52
|
globalid (>= 0.6.0)
|
49
53
|
nokogiri (>= 1.8.5)
|
50
|
-
actionview (7.
|
51
|
-
activesupport (= 7.
|
54
|
+
actionview (7.1.3.4)
|
55
|
+
activesupport (= 7.1.3.4)
|
52
56
|
builder (~> 3.1)
|
53
|
-
erubi (~> 1.
|
54
|
-
rails-dom-testing (~> 2.
|
55
|
-
rails-html-sanitizer (~> 1.
|
56
|
-
activejob (7.
|
57
|
-
activesupport (= 7.
|
57
|
+
erubi (~> 1.11)
|
58
|
+
rails-dom-testing (~> 2.2)
|
59
|
+
rails-html-sanitizer (~> 1.6)
|
60
|
+
activejob (7.1.3.4)
|
61
|
+
activesupport (= 7.1.3.4)
|
58
62
|
globalid (>= 0.3.6)
|
59
|
-
activemodel (7.
|
60
|
-
activesupport (= 7.
|
61
|
-
activerecord (7.
|
62
|
-
activemodel (= 7.
|
63
|
-
activesupport (= 7.
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
63
|
+
activemodel (7.1.3.4)
|
64
|
+
activesupport (= 7.1.3.4)
|
65
|
+
activerecord (7.1.3.4)
|
66
|
+
activemodel (= 7.1.3.4)
|
67
|
+
activesupport (= 7.1.3.4)
|
68
|
+
timeout (>= 0.4.0)
|
69
|
+
activestorage (7.1.3.4)
|
70
|
+
actionpack (= 7.1.3.4)
|
71
|
+
activejob (= 7.1.3.4)
|
72
|
+
activerecord (= 7.1.3.4)
|
73
|
+
activesupport (= 7.1.3.4)
|
69
74
|
marcel (~> 1.0)
|
70
|
-
|
71
|
-
|
75
|
+
activesupport (7.1.3.4)
|
76
|
+
base64
|
77
|
+
bigdecimal
|
72
78
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
79
|
+
connection_pool (>= 2.2.5)
|
80
|
+
drb
|
73
81
|
i18n (>= 1.6, < 2)
|
74
82
|
minitest (>= 5.1)
|
83
|
+
mutex_m
|
75
84
|
tzinfo (~> 2.0)
|
76
85
|
aes_key_wrap (1.1.0)
|
77
|
-
|
78
|
-
|
86
|
+
base64 (0.2.0)
|
87
|
+
bigdecimal (3.1.8)
|
88
|
+
bindata (2.5.0)
|
89
|
+
builder (3.3.0)
|
79
90
|
byebug (11.1.3)
|
80
|
-
concurrent-ruby (1.
|
91
|
+
concurrent-ruby (1.3.3)
|
92
|
+
connection_pool (2.4.1)
|
81
93
|
crass (1.0.6)
|
82
|
-
date (3.3.
|
83
|
-
diff-lcs (1.5.
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
94
|
+
date (3.3.4)
|
95
|
+
diff-lcs (1.5.1)
|
96
|
+
drb (2.2.1)
|
97
|
+
erubi (1.13.0)
|
98
|
+
faraday (2.9.2)
|
99
|
+
faraday-net_http (>= 2.0, < 3.2)
|
88
100
|
faraday-follow_redirects (0.3.0)
|
89
101
|
faraday (>= 1, < 3)
|
90
|
-
faraday-net_http (3.0
|
91
|
-
|
92
|
-
|
93
|
-
|
102
|
+
faraday-net_http (3.1.0)
|
103
|
+
net-http
|
104
|
+
globalid (1.2.1)
|
105
|
+
activesupport (>= 6.1)
|
106
|
+
i18n (1.14.5)
|
94
107
|
concurrent-ruby (~> 1.0)
|
95
|
-
|
108
|
+
io-console (0.7.2)
|
109
|
+
irb (1.13.2)
|
110
|
+
rdoc (>= 4.0.0)
|
111
|
+
reline (>= 0.4.2)
|
112
|
+
json-jwt (1.16.6)
|
96
113
|
activesupport (>= 4.2)
|
97
114
|
aes_key_wrap
|
115
|
+
base64
|
98
116
|
bindata
|
99
117
|
faraday (~> 2.0)
|
100
118
|
faraday-follow_redirects
|
101
|
-
loofah (2.
|
119
|
+
loofah (2.22.0)
|
102
120
|
crass (~> 1.0.2)
|
103
121
|
nokogiri (>= 1.12.0)
|
104
122
|
mail (2.8.1)
|
@@ -106,79 +124,96 @@ GEM
|
|
106
124
|
net-imap
|
107
125
|
net-pop
|
108
126
|
net-smtp
|
109
|
-
marcel (1.0.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
net-
|
127
|
+
marcel (1.0.4)
|
128
|
+
mini_mime (1.1.5)
|
129
|
+
mini_portile2 (2.8.7)
|
130
|
+
minitest (5.24.0)
|
131
|
+
mutex_m (0.2.0)
|
132
|
+
net-http (0.4.1)
|
133
|
+
uri
|
134
|
+
net-imap (0.4.13)
|
115
135
|
date
|
116
136
|
net-protocol
|
117
137
|
net-pop (0.1.2)
|
118
138
|
net-protocol
|
119
|
-
net-protocol (0.2.
|
139
|
+
net-protocol (0.2.2)
|
120
140
|
timeout
|
121
|
-
net-smtp (0.
|
141
|
+
net-smtp (0.5.0)
|
122
142
|
net-protocol
|
123
|
-
nio4r (2.
|
124
|
-
nokogiri (1.
|
143
|
+
nio4r (2.7.3)
|
144
|
+
nokogiri (1.16.6)
|
125
145
|
mini_portile2 (~> 2.8.2)
|
126
146
|
racc (~> 1.4)
|
127
|
-
|
128
|
-
|
147
|
+
psych (5.1.2)
|
148
|
+
stringio
|
149
|
+
racc (1.8.0)
|
150
|
+
rack (3.1.3)
|
151
|
+
rack-session (2.0.0)
|
152
|
+
rack (>= 3.0.0)
|
129
153
|
rack-test (2.1.0)
|
130
154
|
rack (>= 1.3)
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
155
|
+
rackup (2.1.0)
|
156
|
+
rack (>= 3)
|
157
|
+
webrick (~> 1.8)
|
158
|
+
rails (7.1.3.4)
|
159
|
+
actioncable (= 7.1.3.4)
|
160
|
+
actionmailbox (= 7.1.3.4)
|
161
|
+
actionmailer (= 7.1.3.4)
|
162
|
+
actionpack (= 7.1.3.4)
|
163
|
+
actiontext (= 7.1.3.4)
|
164
|
+
actionview (= 7.1.3.4)
|
165
|
+
activejob (= 7.1.3.4)
|
166
|
+
activemodel (= 7.1.3.4)
|
167
|
+
activerecord (= 7.1.3.4)
|
168
|
+
activestorage (= 7.1.3.4)
|
169
|
+
activesupport (= 7.1.3.4)
|
143
170
|
bundler (>= 1.15.0)
|
144
|
-
railties (= 7.
|
145
|
-
rails-dom-testing (2.0
|
146
|
-
activesupport (>=
|
171
|
+
railties (= 7.1.3.4)
|
172
|
+
rails-dom-testing (2.2.0)
|
173
|
+
activesupport (>= 5.0.0)
|
174
|
+
minitest
|
147
175
|
nokogiri (>= 1.6)
|
148
176
|
rails-html-sanitizer (1.6.0)
|
149
177
|
loofah (~> 2.21)
|
150
178
|
nokogiri (~> 1.14)
|
151
|
-
railties (7.
|
152
|
-
actionpack (= 7.
|
153
|
-
activesupport (= 7.
|
154
|
-
|
179
|
+
railties (7.1.3.4)
|
180
|
+
actionpack (= 7.1.3.4)
|
181
|
+
activesupport (= 7.1.3.4)
|
182
|
+
irb
|
183
|
+
rackup (>= 1.0.0)
|
155
184
|
rake (>= 12.2)
|
156
|
-
thor (~> 1.0)
|
157
|
-
zeitwerk (~> 2.
|
158
|
-
rake (13.
|
185
|
+
thor (~> 1.0, >= 1.2.2)
|
186
|
+
zeitwerk (~> 2.6)
|
187
|
+
rake (13.2.1)
|
188
|
+
rdoc (6.7.0)
|
189
|
+
psych (>= 4.0.0)
|
190
|
+
reline (0.5.9)
|
191
|
+
io-console (~> 0.5)
|
159
192
|
rspec (3.12.0)
|
160
193
|
rspec-core (~> 3.12.0)
|
161
194
|
rspec-expectations (~> 3.12.0)
|
162
195
|
rspec-mocks (~> 3.12.0)
|
163
|
-
rspec-core (3.12.
|
196
|
+
rspec-core (3.12.3)
|
164
197
|
rspec-support (~> 3.12.0)
|
165
|
-
rspec-expectations (3.12.
|
198
|
+
rspec-expectations (3.12.4)
|
166
199
|
diff-lcs (>= 1.2.0, < 2.0)
|
167
200
|
rspec-support (~> 3.12.0)
|
168
|
-
rspec-mocks (3.12.
|
201
|
+
rspec-mocks (3.12.7)
|
169
202
|
diff-lcs (>= 1.2.0, < 2.0)
|
170
203
|
rspec-support (~> 3.12.0)
|
171
|
-
rspec-support (3.12.
|
172
|
-
|
173
|
-
thor (1.
|
204
|
+
rspec-support (3.12.2)
|
205
|
+
stringio (3.1.1)
|
206
|
+
thor (1.3.1)
|
174
207
|
timecop (0.9.6)
|
175
|
-
timeout (0.
|
208
|
+
timeout (0.4.1)
|
176
209
|
tzinfo (2.0.6)
|
177
210
|
concurrent-ruby (~> 1.0)
|
178
|
-
|
211
|
+
uri (0.13.0)
|
212
|
+
webrick (1.8.1)
|
213
|
+
websocket-driver (0.7.6)
|
179
214
|
websocket-extensions (>= 0.1.0)
|
180
215
|
websocket-extensions (0.1.5)
|
181
|
-
zeitwerk (2.6.
|
216
|
+
zeitwerk (2.6.16)
|
182
217
|
|
183
218
|
PLATFORMS
|
184
219
|
ruby
|
data/README.md
CHANGED
@@ -20,11 +20,11 @@ module Keycloak
|
|
20
20
|
@app.call(env)
|
21
21
|
end
|
22
22
|
rescue TokenError => e
|
23
|
+
logger.debug("The error causing the Token to fail: #{e.original_error&.message || e.message}")
|
23
24
|
authentication_failed(e.message)
|
24
25
|
end
|
25
26
|
|
26
27
|
def authentication_failed(message)
|
27
|
-
logger.info(message)
|
28
28
|
[401, {"Content-Type" => "application/json"}, [ { error: message }.to_json]]
|
29
29
|
end
|
30
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keycloak-api-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorent Lempereur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
rubygems_version: 3.
|
138
|
+
rubygems_version: 3.5.11
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Rails middleware that validates Authorization token emitted by Keycloak
|