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);
}

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,459 questions
{count} votes