this code is not working

경태 노 41 Reputation points
2022-06-09T07:58:37.487+00:00

at first time, success Challenge().
but after logout() always failed.
always false == Request.IsAuthenticated

why? at challenge(), redirect login page but not autheniticated.

if (!Request.IsAuthenticated)
{
HttpContext.GetOwinContext().Authentication.Challenge(
new AuthenticationProperties { RedirectUri = "/Home/Login" },
OpenIdConnectAuthenticationDefaults.AuthenticationType);
}

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,773 questions
{count} votes