@using Microsoft.AspNetCore.Identity @using UnicornStore.Models @inject SignInManager SignInManager @inject UserManager UserManager @if (SignInManager.IsSignedIn(User)) { } else if (User.Identity.IsAuthenticated) { //This code block necessary only for NTLM authentication } else { }