Commit f52ea6b
Max Loffgren
fix(auth): tag unparseable introspection bodies
An introspection body that failed to parse, or that parsed to null,
threw past every tagged error in introspectToken. It reached the client
as a 401 with WWW-Authenticate and the raw parser message in
error_description, so an upstream fault pushed a working session into
reauthorization and no reason was logged.
Parse defensively and treat a missing boolean `active` as
introspect_malformed_body, matching the guard this file already uses on
other upstream JSON reads. Also scope the telemetry doc comment: it
covers rejections raised while authenticating, not the outbound client
tags raised during tool execution.1 parent d7541ab commit f52ea6b
2 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
478 | 484 | | |
479 | 485 | | |
480 | 486 | | |
| |||
748 | 754 | | |
749 | 755 | | |
750 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
751 | 761 | | |
752 | 762 | | |
753 | 763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2037 | 2037 | | |
2038 | 2038 | | |
2039 | 2039 | | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
2040 | 2053 | | |
2041 | 2054 | | |
2042 | 2055 | | |
| |||
0 commit comments