【问题标题】:IdentityServer4 - redirects in Chrome stopped workingIdentityServer4 - Chrome 中的重定向停止工作
【发布时间】:2020-08-18 05:16:05
【问题描述】:

我有一个在 ASP.Net Core 3.1 中运行的 IdentityServer (v3.1.4 nugets) 的实现。在我的开发机器(windows 10)上,Chrome 在成功验证后不会重定向回我的 Angular 站点,即:

        var result = await _signInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, lockoutOnFailure: false).ConfigureAwait(false);
        if (result.Succeeded)
        {
          _logger.LogInformation("User logged in.");
          return RedirectToLocal(returnUrl);
        }
        ...

如果只是回到登录提示符处。

Chrome 隐身也失败了。 清除 Chrome 缓存没有帮助。 也重启了几次。

使用 FireFox 可以正常工作。 在测试和生产环境(Ubuntu 主机)中也可以正常工作。 也适用于另一个开发者的机器。

这一年都运行良好。这是在上周更新 Windows 之后开始的。几个月来前端应用程序或身份服务器的这部分代码没有任何更改。

returnUrl 是这样的:

/connect/authorize/callback?response_type=id_token%20token&client_id=xxxxx.client.js&state=dXF2ZkFpRVFMTjNOY2JPcGxfVVJ3c1VqbXpleDVvU0xrNGRWZ1I1Uzzzzzz&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fauthenticate&scope=profile%20openid%20xxxxx.api.v1%20yyyyy.api.v1&nonce=dXF2ZkFpRVFMTjNOY2JPcGxfVVJ3c1VqbXpleDVvU0xrNGRWZ1I1UEpVQ3NH

我想这比商店停止更令人烦恼,但它说服了我现在将 Firefox 用于我的主要浏览器 - Chrome 的最后一根稻草 - 它是新的 IE。

【问题讨论】:

标签: google-chrome asp.net-identity identityserver4


【解决方案1】:

问题已解决。 Chrome 长期以来一直在警告我有关 SameSite cookie 的信息,我忽略了它们。最后,它厌倦了我忽略它。 :)

【讨论】:

    猜你喜欢
    • 2015-12-28
    • 2014-04-21
    • 2013-10-09
    • 2015-07-16
    • 1970-01-01
    • 2012-08-18
    • 2010-10-06
    • 1970-01-01
    • 2020-05-27
    相关资源
    最近更新 更多