Request.IsAuthenticated property is returning false with openId Connect

Viewed 270

I am integrating Azure AD in my MVC application using openID connect, i follow the steps mentioned in

https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-aspnet-webapp

When i hit my application url, it redirect me to AD and do authentication, i am getting token from AD.

But when i check IsAuthenticated property in authentication filter, it shows false.

    public void OnAuthentication(AuthenticationContext filterContext)
    {
        filterContext.RequestContext.HttpContext.Request.IsAuthenticated;
    }
0 Answers
Related