Repository navigation
Commit 5a0d539
committed
test(auth): lowercase bearer also exercised on the MCP client path
Review pick on #24501: the lowercase-scheme assertion only used the
provider registry token, so the McpClientAuthenticator branch of the
middleware never saw a lowercase scheme. The test's client authenticator
mock compared the raw header case-sensitively, unlike the real parser
after this PR. Accept the lowercase scheme in the mock and add a
lowercase clientToken call, keeping the provider assertion.
Model: GLM-5.3 (ZCode)1 parent 76d7efb commit 5a0d539
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
762 | 765 | | |
763 | 766 | | |
764 | 767 | | |
| |||
798 | 801 | | |
799 | 802 | | |
800 | 803 | | |
| 804 | + | |
801 | 805 | | |
802 | 806 | | |
803 | 807 | | |
804 | 808 | | |
| 809 | + | |
805 | 810 | | |
806 | 811 | | |
807 | 812 | | |
| |||
0 commit comments