Identity Server 4 Angular 2令牌到期

晶圆厂

我正在寻找有关如何最好地使用Angular 2和Identity Server 4处理令牌过期的建议。我正在使用Identity Server 4的隐式流程,该流程不会发出刷新令牌,并且我不需要重定向令牌过期后的用户。

另外,为什么没有刷新令牌?为什么混合流不适用于javascript客户端?我确实控制了ID Server,应用程序和api,所以可以正常工作吗?

珍南

我可以推荐用于管理javascript应用程序令牌的库:https : //github.com/IdentityModel/oidc-client-js

您已正确使用SPA的隐式流程-这是关于哪种流程正确的说明-https://leastprivilege.com/2016/01/17/which-openid-connectoauth-2-o-flow-is-正确的那一个/

Oidc-client提供称为automaticSilentRenew-检查文档的强大功能后台有计时器,可以在令牌过期之前处理事件,并使用隐藏的iframe获取新的访问令牌。

例如,对于Angular2oidc-clienthttps://github.com/jmurphzyo/Angular2OidcClient

使用IdentityServer在JavaScript Web应用程序中进行身份验证和授权概述的视频-https: //vimeo.com/131636653

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Identity Server 4从Db撤消访问令牌

Identity Server 4:添加声明以访问令牌

使用Ionic 2配置Identity Server 4

角色-Identity Server 4

Identity Server 4向生成的令牌添加声明

如何在 Identity Server 4 中记录生成的访问令牌?

Identity Server 4:支持密码授予类型的刷新令牌

Identity Server 4-设置访问令牌生存期

Identity Server 4参考令牌和安全性

Identity Server 4刷新令牌过期不起作用

在Identity Server 4中设置令牌验证期限

使用angular-oauth2-oidc和Identity Server 4时无法获取用户名/给定名称

如何使用 iFrame 在隐式流中手动进行静默刷新(使用 Identity Server 4、Angular 2+)

Identity Server 4 + Identity Framework + React前端

安装 Identity Server 4 模板

Identity Server 4 / nativescript挂起

Identity Server 4 Cors问题

Identity Server 4和Docker

Identity Server 4无限循环

登录后,Identity Server 4不会重定向到Angular应用程序

Identity Server 4 与 ASP.NET Core MVC 进行身份验证然后调用 Angular SPA

Identity Server4连接/令牌端点发出400错误请求

如何使用Identity Server 4中的C#正确获取令牌以在Postman中使用?

UserID 子声明生成,但从 Identity Server 4 令牌中消失,导致 UserManager.GetUser 失败

具有自定义生存期的Identity Server 4访问令牌

在Identity Server 4中使用参考令牌传递其他数据

具有EF Identity DB的Identity Server 4问题

对Identity Server 4进行故障排除

在 Identity Server 4 中使用 fetch