【发布时间】:2017-05-18 22:28:56
【问题描述】:
我正在使用IdentityServer3 为新的ng2 Web 应用程序提供身份验证和授权。我的服务器端几乎就是https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/AspNetIdentity/WebHost 提供的示例。
在客户端,我设置了一个登录页面,该页面使用password grant_type 的roclient(资源所有者客户端)流,在成功调用POST /core/connect/token 后获取jwt。现在我将它保存到localStorage 并用于以后的调用。
我的问题如下:
如何实现“记住我”功能?我会使用刷新令牌来改变令牌的到期时间,还是会尝试以某种方式使用 cookie -
IdentityServer3中是否有内置方法可以从不记名令牌中获取 cookie?
【问题讨论】:
标签: cookies oauth-2.0 jwt identityserver3 openid-connect