I'm having trouble logging out of the application using STS.
After clicking the Logout button, I expire all the cookies I have, until I give the FederationAuthentication signout command, but it does not request the PIN again
Follow the logout code
protected void BtnLogoutClick(object sender, EventArgs e)
{
WSFederationAuthenticationModule fam = FederatedAuthentication.WSFederationAuthenticationModule;
try
{
FormsAuthentication.SignOut();
Session.Abandon();
}
finally
{
fam.SignOut(true);
}
SignOutRequestMessage signOutRequest = new SignOutRequestMessage(new Uri(System.Configuration.ConfigurationManager.AppSettings["CORP.STS.Certificado"]), System.Configuration.ConfigurationManager.AppSettings["CORP.STS.UrlCliente"]);
FormsAuthentication.RedirectToLoginPage();
}
Is there something wrong?