Hi,
I am working on a MVC5 sample where I am using Windows Azure Active Directory for Identity. I am able to successfully integrate the directory with my sample. On running the application, I am able to sign-in successfully. But, when I am trying to signout, I am getting the below error:
ACS20026: Could not find the application redirection context with the reference identifier.
Below is the code that I am using for signing out:
public void SignOut() { WsFederationConfiguration fc =
FederatedAuthentication.FederationConfiguration.WsFederationConfiguration; string request = System.Web.HttpContext.Current.Request.Url.ToString(); string wReply =
request.Substring(0, request.Length - 7); SignOutRequestMessage soMessage =
new SignOutRequestMessage(new Uri(fc.Issuer), wReply); soMessage.SetParameter("wtrealm", fc.Realm); FederatedAuthentication.SessionAuthenticationModule.SignOut(); Response.Redirect(soMessage.WriteQueryString()); }
any pointer to fix this issue will be helpful.
Thanks! Vaibhav Gujral.