We have ASP.NET Forms application that uses WS-FED (SAML) for login. Everything works fine except when logging out, the app would sometimes prompt to be authenticated to get to the logout.aspx page.
The logout.aspx simply calls this:
if (Request.IsAuthenticated)
HttpContext.Current.GetOwinContext().Authentication.SignOut(new AuthenticationProperties() { RedirectUri = Request.Url.AbsoluteUri }, WsFederationAuthenticationDefaults.AuthenticationType, CookieAuthenticationDefaults.AuthenticationType);
How do I prevent it from having to prompt for authentication just to get to the logout page?