【发布时间】:2021-09-01 04:50:59
【问题描述】:
一旦我们在前端获得 JWT 令牌,我们就可以通过使用 Authorization 标头或通过 cookie 来验证后端服务器中的无状态 RestAPI。 this video 中很好地解释了。
如果后端服务器在 C# .Net Framework (MVC) 中,如何验证接收到的 JWT? official documentation 指向 OWIN,未维护。
在看到各种博客和文档时,理论说我们需要从 Keycloak Realms 的公共证书中获取 Modulus & Exponent 参数,然后使用JWT.Net 进行验证
如何实现?
【问题讨论】: