You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(mcp): use Envoy Gateway's ClaimToHeader type
Replace the custom ClaimToHeader type definition with egv1a1.ClaimToHeader
to reduce code duplication between AI Gateway and Envoy Gateway.
fix codegen to append license header
Signed-off-by: Matthieu Paret <mp@blackfuel.ai>
t.Logf("Successfully connected with valid token and retrieved %d tools", len(tools.Tools))
97
97
})
98
98
99
+
t.Run("claim headers forwarded to backend", func(t*testing.T) {
100
+
// This test validates that JWT claims configured via claimToHeaders are extracted
101
+
// and forwarded to the backend MCP server. The backend has TEST_EXPECTED_CLAIM_HEADERS
102
+
// set, so its middleware will reject any request missing the expected claim headers.
103
+
validToken:="eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.NHVaYe26MbtOYhSKkoKYdFVomg4i8ZJd8_-RU8VNbftc4TSMb4bXP3l3YlNWACwyXPGffz5aXHc6lty1Y2t4SWRqGteragsVdZufDn5BlnJl9pdR_kdVFUsra2rWKEofkZeIC4yWytE58sMIihvo9H1ScmmVwBcQP6XETqYd0aSHp1gOa9RdUPDvoXQ5oqygTqVtxaDr6wUFKrKItgBMzWIdNZ6y7O9E0DhEPTbE9rfBo6KTFsHAZnMg4k68CDp2woYIaXbmYTWcvbzIuHO7_37GT79XdIwkm95QJ7hYC9RiwrV7mesbY4PAahERJawntho0my942XheVLmGwLMBkQ"//nolint:gosec // Test JWT token
0 commit comments