-->

Azure AppFabric Access Control Service Log Off

2019-07-21 08:16发布

问题:

I'm using Live Id and Google as IPs, but I don't know how to make the Log off button work.

回答1:

From http://acs.codeplex.com/SourceControl/changeset/view/60691#1067602:

WSFederationAuthenticationModule fam = FederatedAuthentication.WSFederationAuthenticationModule;

try
{
    FormsAuthentication.SignOut();
}
finally
{
    fam.SignOut(true); 
}