有人能解释一下在 Identity Server4 中成功登录后发送到用户浏览器的 cookie 的用途吗?此外,我在底部还有三个较小的相关问题。
客户端在 中定义的 ASP.NET Core 中使用 cookie 中间件Startup.cs 文件。
app.UseCookieAuthentication()
很明显 Identity Server 创建了哪些 token 以及 ASP.NET Core 中间件创建了哪些 cookie,但我不确定每个 cookie 包含哪些内容。
ASP.NET Core 中间件决定创建分块 cookie 可能是由于 cookie 大小 (4050B + 865B)。
我一直试图找到一种方法来解密 cookie 以使用 Data Protection 读取值。 ASP.NET Core 提供的 API 没有任何运气。
最佳答案
关于asp.net - IdentityServer4 中的 Cookie,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40510852/