En cas de problème avec la déconnexion de mon application à l'aide de WSfederationAuthentication. J'exécute la déconnexion le code suivant:WAAD Déconnexion redirigeant vers la page de connexion Office 365
FormsAuthentication.SignOut();
if (FederatedAuthentication.SessionAuthenticationModule != null)
{
FederatedAuthentication.SessionAuthenticationModule.DeleteSessionTokenCookie();
FederatedAuthentication.SessionAuthenticationModule.SignOut();
}
if (FederatedAuthentication.WSFederationAuthenticationModule != null)
{
WSFederationAuthenticationModule authModule =
FederatedAuthentication.WSFederationAuthenticationModule;
authModule.SignOut(true);
String signoutURL = WSFederationAuthenticationModule.GetFederationPassiveSignOutUrl(
authModule.Issuer,
authModule.Realm",
null);
WSFederationAuthenticationModule.FederatedSignOut(
new Uri(signoutURL),
new Uri(authModule.Realm));
}
Les cookies sont effacés etc, mais la page est redirigé vers Office365 page de connexion au lieu de mes applications page de connexion appropriée.
L'Émetteur et Realm sont corrects Emetteur: https://login.windows.net/EndpointID/wsfed Royaume: https //: localhost: 444 (adresse de base de ma demande, localhost)
Suite est le journal de Fiddler après avoir cliqué fermeture de session:
http://login.windows.net:443
https://login.windows.net/EndpointID/wsfed?wa=wsignout1.0&wreply=https%3a%2f%2f127.0.0.1%3a444%2f
https://localhost:444/?wa=wsignoutcleanup1.0
http://login.microsoftonline.com:443
https://login.microsoftonline.com/login.srf?wa=wsignout1.0
https://login.microsoftonline.com/logout.srf?wa=wsignout1.0&lc=1033
https://login.windows.net/common/wsfed?wa=wsignoutcleanup1.0 **<<<<------ Why ?**
http://login.microsoftonline-p.com:443
https://login.microsoftonline-p.com/ThirdPartyCookieCheck.srf?ct=9348739876
https://login.microsoftonline-p.com/ThirdPartyCookieCheck.srf?tpc=394875457987&lc=1033
https://login.microsoftonline.com/?lc=1033
Ces gars-là sont confrontés à la même question, aucune résolution: http://social.msdn.microsoft.com/Forums/vstudio/en-US/ac41c0c5-83ef-4394-9111-fa6d07215f5d/adfs-20-does-not-redirect-back-to-reply-url-on-signout?forum=Geneva