SEC-2714: Add AuthenticationPrincipal resolver for messaging support