问题
我在使用OpenID Connect 3为我正在开发的网站提供授权时遇到问题。
问题是这样的:
第 4 步和第 5 步将永远进行下去……好吧,除了达到 cookie 最大数量的限制之外,一切都会结束。
尝试过的解决方案
经过几天的谷歌搜索后,我尝试了以下方法,但到目前为止没有任何效果对我有用。
Kentor Owin Cookie Fix在 Startup 类中..ConfigureAuth 函数
app.UseKentorOwinCookieSaver();
Run Code Online (Sandbox Code Playgroud)1 的变体
app.UseKentorOwinCookieSaver(PipelineStage.Authenticate);
Run Code Online (Sandbox Code Playgroud)替代 cookie 管理器SystemWebCookieManager
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = "Cookies",
CookieManager = new SystemWebCookieManager()
});
Run Code Online (Sandbox Code Playgroud)3 SystemWebChunkingCookieManager的变体
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = "Cookies",
CookieManager = new SystemWebChunkingCookieManager()
});
Run Code Online (Sandbox Code Playgroud)Global.asa 文件中的会话存根
protected void Session_Start()
{
}
protected void Session_End() …Run Code Online (Sandbox Code Playgroud)