Repository navigation
Commit 7876bd4
committed
fix(server): accept a case-insensitive DPoP authorization scheme
HTTP authentication schemes are case-insensitive (RFC 9110, section
11.1), and #23782 made the Bearer parser match its scheme that way. The
DPoP parser two functions below it still required the exact prefix
"DPoP ", so a proof-bound client that wrote "dpop <token>" had its
valid credential and proof refused as if it sent none.
parseDpopToken now matches its scheme case-insensitively, like
parseBearerToken. The check that adds the DPoP challenge to an
unauthorized response matches the same way, so a refused request
with either spelling gets the same challenge.
Bug: a DPoP Authorization header is rejected unless its scheme is spelled exactly "DPoP"1 parent 9de4dc2 commit 7876bd4
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments