Marco Garofalo
02/24/2026, 11:40 AMdave
02/24/2026, 12:15 PMMarco Garofalo
02/24/2026, 12:33 PMdave
02/24/2026, 12:33 PMMarco Garofalo
02/24/2026, 12:34 PMMcpSecurity for the time being, receiving a special token, validating it and then trying to pass down a principal.dave
02/24/2026, 12:37 PMdave
02/24/2026, 12:39 PMfun SseFilter(security: Security) = SseFilter { next ->
{
var targetRequest = it
val authResponse = security.filter.then {
targetRequest = it
Response(OK)
}(it)
when {
authResponse.status.successful -> next(targetRequest)
else -> SseResponse(authResponse.status, authResponse.headers, true) { it.close() }
}
}
}
and then you can capture the request that gets passed throughdave
02/24/2026, 12:40 PMMarco Garofalo
02/24/2026, 12:40 PMdave
02/24/2026, 12:42 PMMarco Garofalo
02/24/2026, 12:42 PMdave
02/24/2026, 12:45 PMMarco Garofalo
02/24/2026, 12:45 PMdave
02/24/2026, 12:46 PMMarco Garofalo
02/24/2026, 12:46 PMMarco Garofalo
02/24/2026, 12:48 PMMarco Garofalo
02/24/2026, 12:50 PM