Skip to main content

KERNEL_PRINCIPAL_KEY

Constant KERNEL_PRINCIPAL_KEY 

Source
pub const KERNEL_PRINCIPAL_KEY: &str = "camel.auth.principal.typed";
Expand description

Exchange extension key under which install_carrier stores the authenticated principal.

Values stored under this key are unforgeable: producing one requires an AuthenticatedPrincipal, which no external code can construct. A wrong-type value fails the get_extension::<AuthenticatedPrincipal> downcast and is treated as absent.