我们有两个不同域的应用程序(app.auth和app.openId),我们使用wso2 OpenID Connect在它们上面应用了SSO并且成功了,之后我们尝试在所有应用程序中应用单点注销,如此链接所示
https://docs.wso2.com/display/IS520/Configuring+OpenID+Connect+Single+Logout
当我从一个应用程序单击Logoff时,它会将我重定向到OpenID CONNECT LOGOUT
https://localhost:9443/authenticationendpoint/oauth2_logout_consent.do
在我们按是注销后,Wso2将我重定向到客户端应用程序,但我们发现两个应用程序仍然登录
这是我退出的代码
public void LogOff()
{
string idtalken = Session["id_token"].ToString();
Response.Redirect("https://localhost:9443/oidc/logout?post_logout_redirect_uri="+ UrlHelper + "/&id_token_hint=" + idtalken);
}
在我们尝试在重定向到WSO2服务器之前删除cookie之后,我们发现当前应用程序只有注销,因为我们只删除了与其域相关的cookie,这是代码:
public void LogOff()
{
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
string idtalken = Session["id_token"].ToString();
Response.Redirect("https://localhost:9443/oidc/logout?post_logout_redirect_uri="+ UrlHelper + "/&id_token_hint=" + idtalken);
}
请从所有应用程序单一注销请求任何帮助