I have a solution where Forms Authentication in place, now I am trying to integrate azure along with Forms Authentication so that when they choose Login using AD it will navigate to portal and get the response. In the POC I developed it works fine where it has no Forms Authentication, but when I integrate with the actual application it is not getting navigated to portal
private void AzureLogin() {
HttpContext.Current.GetOwinContext().Authentication.Challenge(
new AuthenticationProperties { RedirectUri = "/" },
new MailAddress(txtUsername.Text).Host);
}
It is always redirecting to default page instead of navigating. I have commented the FormsAuthentication section in web.config but still it is navigating to login page
