Commit a5b2eb6
KTOR-9352 Handle EC key type when JWK algorithm is null (#5387)
* KTOR-9352 Add failing test for EC JWK with null algorithm
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* KTOR-9352 Handle EC key type when JWK algorithm is null
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update ktor-server/ktor-server-plugins/ktor-server-auth-jwt/jvm/test/io/ktor/server/auth/jwt/JWTAuthTest.kt
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* KTOR-9352 Detect EC curve when JWK algorithm is null
Infer ECDSA algorithm from the EC key's curve size (P-256, P-384, P-521)
instead of always defaulting to ECDSA256.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent a971317 commit a5b2eb6
File tree
2 files changed
+88
-1
lines changed- ktor-server/ktor-server-plugins/ktor-server-auth-jwt/jvm
- src/io/ktor/server/auth/jwt
- test/io/ktor/server/auth/jwt
2 files changed
+88
-1
lines changedLines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
| |||
Lines changed: 76 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
377 | 452 | | |
378 | 453 | | |
379 | 454 | | |
| |||
550 | 625 | | |
551 | 626 | | |
552 | 627 | | |
| 628 | + | |
553 | 629 | | |
554 | 630 | | |
555 | 631 | | |
| |||
0 commit comments