【问题标题】:.Net Core SignOut() RedirectUri not working.Net Core SignOut() RedirectUri 不起作用
【发布时间】:2021-03-03 13:14:37
【问题描述】:

我正在尝试使用AuthenticationProperties 中指定的redirect uri 进行注销。它重定向到我配置的 OIDC SignedOutCallbackPath,但没有到达 RedirectURI。

    [HttpGet("Logout")]
    public async Task Logout()
    {
        var prop = new AuthenticationProperties()
        {
            RedirectUri = "http://google.com"
        };

        await HttpContext.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme, prop);
    }

设置和信息:

  • 应用具有 Cookie 和 OpenId Connect 身份验证设置
  • 连接到 Oracle IDCS。
  • HttpContext.SignOutAsync() 和 SignOut() 的结果相同。
  • A login via ChallengeRequest with a RedirectUri on the other hand works.

重定向 URI 如何在内部实际工作 - 例如。它会被发送到身份提供者并返回吗?关于为什么这不起作用的任何线索?

【问题讨论】:

    标签: c# asp.net-core authentication oauth-2.0 openid-connect


    【解决方案1】:

    事实证明,当我将 OIDC SignedOutCallbackPath 设置为 signout-oidc 时,重定向不起作用。

    见https://github.com/dotnet/aspnetcore/issues/28009。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-11
      • 2021-10-30
      • 1970-01-01
      • 1970-01-01
      • 2021-10-22
      • 2020-04-09
      • 1970-01-01
      • 2023-03-14
      相关资源
      最近更新 更多