I have implemented Windows Azure Authentication, when creating new application project, provided out of box in Visual Studio 2013.
The sign in works great, but when calling the sign out, I get following error message.
Sign out
Sorry, but we're having trouble signing you out.
We received a bad request.
Additional technical information: |
Trace ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
Timestamp: 2014-04-12 08:45:17Z |
ACS20026: Could not find the application redirection context with the reference identifier. |
I am generating the sign out url in following manner:
var signoutMessage = new SignOutRequestMessage(new Uri(config.Issuer), callbackUrl); signoutMessage.SetParameter("wtrealm", Realm ?? config.Realm); FederatedAuthentication.SessionAuthenticationModule.SignOut();It generates the signout url in following format: https://login.windows.net/common/wsfed?wa=wsignout1.0&wreply=xxxx&wtrealm=https%3a%2f%2fxxx.onmicrosoft.com%2fxxxx
Any idea why this happens?