【问题标题】:IdentityServer4 logout from external provider like GoogleIdentityServer4 从 Google 等外部提供商注销
【发布时间】:2021-02-13 07:08:48
【问题描述】:

我将 IdentityServer4 与 Asp.Net Core Identity 一起使用。在 Identity Server 中,我启用了 GOOGLE 作为外部提供者。我可以用 GOOGLE 登录。第一次尝试使用 GOOGLE 登录时,Identity Server 会向我显示 GOOGLE 的页面,我可以在其中选择帐户或插入我的凭据。

当我注销时,我收到了我已注销的消息,但是当我尝试使用 GOOGLE 再次登录时,我直接登录而无需输入我的凭据,如果我有超过 1 个 GOOGLE 帐户,我将无法选择一个不同的。

如果我从登录屏幕直接连接到服务器,或者我通过 Expo 本机应用程序中的 AuthRequest 调用带有 id_token_hint 增强的 endsession 端点,都会发生这种情况。

为什么?我快疯了。

【问题讨论】:

    标签: react-native asp.net-identity expo identityserver4 openid-connect


    【解决方案1】:

    我找到了这个解决方案:

    await WebBrowser.openAuthSessionAsync("https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=http://myIdentityServerEndSessionEndpoint", "exp://myReactNativeApp");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-14
      • 1970-01-01
      • 2019-09-07
      • 1970-01-01
      • 2015-04-16
      • 2013-06-15
      • 2013-04-20
      相关资源
      最近更新 更多