| author | |
| committer | |
| log | c5e52191dea81c828071dc071f3599ef90e16cf1 |
| tree | ce86ec9292f46951db9ed2427c7ef9ef40cbb133 |
| parent | 2f957cc719b6462fdeae120ffc10bbba049b8e91 |
| signature | Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU |
Any failure while authenticating an MCP request, including a full disk
failing the token-renewal write, answered 401 and told clients to discard a
valid token. Only authentication failures answer 401 now.
Assisted-by: claude-opus-5.51 files changed, 1 insertions(+), 0 deletions(-)
dashboard/src/mcp.rs+1| ... | @@ -574,6 +574,7 @@ pub fn router<H: rmcp::ServerHandler>( | ... | @@ -574,6 +574,7 @@ pub fn router<H: rmcp::ServerHandler>( |
| 574 | } | 574 | } |
| 575 | next.run(request).await | 575 | next.run(request).await |
| 576 | } | 576 | } |
| 577 | Err(error) if error.status != 401 => error.into_response(), | ||
| 577 | Err(_) => ( | 578 | Err(_) => ( |
| 578 | StatusCode::UNAUTHORIZED, | 579 | StatusCode::UNAUTHORIZED, |
| 579 | [( | 580 | [( |