我遵循了这个例子来让隐式流工作。
http://weblogs.thinktecture.com/cweyer/2012/11/oauth2-in-thinktecture-identityserver-v2-implicit-grant-flow-with-javascript.html
我的问题是,我该如何给用户签名呢?我希望有人知道,因为我还找不到任何例子。现在,我可以触发授权窗口并正确处理它,并对我的请求使用访问令牌,但我不知道如何才能切换用户。
发布于 2013-08-19 00:32:50
要注销,您必须使用注销方法创建自定义控制器。
public void Logout()
{
// You should be able to revoke thinktecture token like this. (haven't tested this out)
var sam = FederatedAuthentication.SessionAuthenticationModule;
sam.SignOut();
// Or you should be able to logoff like this when using a membership provider. (this way works for me)
//_yourMembership.Logout();
Thread.CurrentPrincipal = null;
HttpContext.Current.User = null;
}https://stackoverflow.com/questions/17331058
复制相似问题