pub async fn kernel_authenticate(
plan: &RouteSecurityPlan,
providers: &ProviderRegistry,
credentials: &ExtractedToken,
) -> Result<AuthenticatedPrincipal, CamelError>Expand description
Resolve the route’s provider and authenticate the extracted token.
Returns an AuthenticatedPrincipal minted by the provider named in
plan.provider_ref. An unresolved provider is an CamelError::Unauthenticated
whose message names the missing provider (fail-closed).