Commit 375ea36
authored
fix(rauthy): detect drift when payload omits a field present on server (#140)
drift_field only iterated payload keys, so any caller that intentionally
omitted a field (to clear it on the server) silently noop'd. Add a
reverse pass that walks got's keys and flags any field present on the
server but absent from the payload — Rauthy's PUT is a full-replacement
so a follow-up put() clears the field cleanly.
Also drop `challenges` from the outline preset. Outline 1.8.x sends
authorize requests without code_challenge and Rauthy 400's
'code_challenge missing' on any client declaring challenges. The
confidential client + client_secret carries authn weight; PKCE is
redundant for this consumer.
Bump 0.15.12 -> 0.15.13 + 1 new test for the reverse-direction drift.1 parent 676b1c8 commit 375ea36
4 files changed
Lines changed: 59 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
| |||
309 | 318 | | |
310 | 319 | | |
311 | 320 | | |
312 | | - | |
313 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
314 | 325 | | |
315 | 326 | | |
316 | 327 | | |
| |||
334 | 345 | | |
335 | 346 | | |
336 | 347 | | |
337 | | - | |
338 | 348 | | |
339 | 349 | | |
340 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
198 | 239 | | |
199 | 240 | | |
200 | 241 | | |
| |||
383 | 424 | | |
384 | 425 | | |
385 | 426 | | |
386 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
387 | 430 | | |
388 | 431 | | |
389 | 432 | | |
| |||
0 commit comments