IdentityModel OIDC客户注销

问题描述 投票:2回答:1

我已经被验证用户身份对服务器本机Windows客户端应用程序。登录工作正常。但是,我不能退出的用户。

Here is the link of the source code that I am using

我试过,没有运气logoutAsync方法。一旦用户登录,每当我启动应用程序,点击登录,它会自动登录用户。

native identity logout identityserver4 oidc
1个回答
0
投票

在样本您提供内部LogoutButton_Click代码被注释掉了。

private async void LogoutButton_Click(object sender, EventArgs e)
{
    // await _oidcClient.LogoutAsync(trySilent: Silent.Checked);
    // AccessTokenDisplay.Clear();
    // OtherDataDisplay.Clear();
}
© www.soinside.com 2019 - 2024. All rights reserved.