Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Error while Signing out. MVC5 + VS2013 + WAAD

$
0
0

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.




Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>