diff --git a/src/Umbraco.Web/Security/BackOfficeCookieAuthenticationProvider.cs b/src/Umbraco.Web/Security/BackOfficeCookieAuthenticationProvider.cs index bf22e82bbc..e7aef4be03 100644 --- a/src/Umbraco.Web/Security/BackOfficeCookieAuthenticationProvider.cs +++ b/src/Umbraco.Web/Security/BackOfficeCookieAuthenticationProvider.cs @@ -96,6 +96,11 @@ namespace Umbraco.Web.Security await EnsureValidSessionId(context); + if (context?.Identity == null) + { + context?.OwinContext.Authentication.SignOut(context.Options.AuthenticationType); + return; + } await base.ValidateIdentity(context); }