I'm trying to add Microsoft Azure Active Directory Authentication to an existent ASP.NET Web Application. I can't convert this project to the MVC pattern. The existing application already have an authentication system. I must keep it.
Here is the code used to call the azure authentication service :
HttpContext.Current.GetOwinContext().Authentication.Challenge(
new AuthenticationProperties { RedirectUri = "/" },
OpenIdConnectAuthenticationDefaults.AuthenticationType);
The previous code prompt the correct Azure Authentication page. But how can I check if the user authenticated successfully ? In MVC pattern you just have to check Request.IsAuthenticated how can I do the same here ?