WindowsIdentityFoundationを使用するプロジェクトに取り組んでいます。サインアウトソリューションをテストしているときに、次の呼び出し http:// rp /?wa = wsignoutcleanup1.0は、RP上のFedAuthCookieを削除しないことがわかりました。これにより、ユーザーはRPにサインインしたままになります。
この状況を改善するために、Global.asaxに次のコードを追加しました。
protected void Application_Start()
{
FederatedAuthentication.WSFederationAuthenticationModule.SigningOut += new EventHandler<SigningOutEventArgs>(WSFederationAuthenticationModule_SigningOut);
}
void WSFederationAuthenticationModule_SigningOut(object sender, SigningOutEventArgs e)
{
FederatedAuthentication.SessionAuthenticationModule.DeleteSessionTokenCookie();
}
しかし、WIFはこれを自動的に処理するべきではありませんか?それともこれがそれを行う方法ですか?