【发布时间】: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