为什么 controllerbase.challenge 返回 200 而不是 302 重定向
Why is controllerbase.challenge returning a 200 instead of a 302 reidirect
我在 asp.net 核心中使用 controllerbase.challenge 来根据 oidc 提供商验证我的 Web 应用程序。在除一个部署环境之外的所有环境中,当我点击我正在调用的 mvc 端点时,我看到了适当的重定向到 oidc 提供程序 controllerbase.challenge.
对此有何解释?除了在有问题的环境中我看到 200 ok 响应
public IActionResult Authenticate()
{
return Challenge(new AuthenticationProperties { RedirectUri = "/" }, OpenIdConnectDefaults.AuthenticationScheme);
}
是一个 cookie 错误,如果您在浏览器中打开开发人员选项卡就可以看到
我在 asp.net 核心中使用 controllerbase.challenge 来根据 oidc 提供商验证我的 Web 应用程序。在除一个部署环境之外的所有环境中,当我点击我正在调用的 mvc 端点时,我看到了适当的重定向到 oidc 提供程序 controllerbase.challenge.
对此有何解释?除了在有问题的环境中我看到 200 ok 响应
public IActionResult Authenticate()
{
return Challenge(new AuthenticationProperties { RedirectUri = "/" }, OpenIdConnectDefaults.AuthenticationScheme);
}
是一个 cookie 错误,如果您在浏览器中打开开发人员选项卡就可以看到