【发布时间】:2021-02-09 09:20:06
【问题描述】:
我在 .Net Core 中有一个“身份验证服务”应用程序,它通过质询请求进行身份验证,然后使用令牌重定向回客户端应用程序。
[AllowAnonymous]
[HttpGet("Login")]
public IActionResult Login()
{
return Challenge(new AuthenticationProperties
{
RedirectUri = returnUrlQs
}, OpenIdConnectDefaults.AuthenticationScheme);
}
目前,我使用 options.Events.OnAuthorizationCodeReceived OpenId Connect 事件通过 HTTP cookie 传输令牌。但是 4kb 的 cookie 长度太小了,所以我想尝试将其移至授权标头。
我已尝试设置响应标头,但另一端未收到;在客户端应用程序上。
这有可能实现吗?
感谢您的帮助!
【问题讨论】:
标签: c# asp.net-core jwt openid-connect