.NET v4.6.2 迁移到 .NET CORE 3.1 - OWIN 身份验证
对于上面的非描述性简短描述,我深表歉意。
语境: 我们有一系列使用 .NET v4.6.2 开发的项目。他们使用 OWIN 来验证用户身份。我们使用 Ping SSO。 Owin 确保在用户通过身份验证时创建 cookie。这样,即使用户从一个应用程序移动到另一个应用程序,当 cookie 可用时,用户也不会被发送到登录 IDP。
现在,我们正在将应用程序一一升级到.NET Core 3.1。问题是我们使用 ITfoxtec.Identity.Saml2 进行 SSO 登录。现在,新开发的应用程序无法读取旧应用程序中生成的 OWIN cookie。
有什么出路吗:(
My apologies for the non-descriptive short description above.
Context:
We have a range of projects developed using .NET v4.6.2. They use OWIN to authenticate the user. We use Ping SSO. Owin makes sure to create the cookie when the user is authenticated. With this, user is not sent to login IDP when cookie is available though user moves from one application to another.
Now, We are upgrading the applications one by one to .NET Core 3.1. Problem is we have used ITfoxtec.Identity.Saml2 for SSO login. Now, newly developed application is not able to read OWIN cookie generated in old application.
Is there any way out :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

跨应用程序和域使用相同的 cookie 是不安全的,出于安全原因,.NET Core 不支持它。
您应该在每次登录请求时将用户从每个应用程序重定向到您的 IdP (Ping SSO)。并让 IdP 在一个域上保存身份 cookie。
It is insecure to use the same cookie across applications and domains, and it is not supported in .NET Core for security reasons.
You should redirect the user to your IdP (Ping SSO) from each application on each login request. And let the IdP hold the identity cookie on one domain.