protected override void ConfigureAuthentication(IPipelines pipelines) { pipelines.EnableJwtStatelessAuthentication( ctx => ctx .GetOwinEnvironment() .ContainsKey(Configuration.Authentication.ClaimsPrincipalResourceName) ? ctx.GetOwinEnvironment() [Configuration.Authentication .ClaimsPrincipalResourceName] as ClaimsPrincipal : null, Logger); }