我想要创建的应用程序,其中的要求,登录过程中,用户必须只登录一次,每30天。
应用程序场景是,单页应用程序将在访问web的angularjs中编写。
如何将身份服务器v3配置为只登录一次?
如果我想持久化登录30天,那么这个场景推荐的访问令牌的生命时间是多少?
发布于 2016-05-15 14:49:25
您可以将IdentityServer配置为发出30天持久cookie。https://identityserver.github.io/Documentation/docsv2/configuration/authenticationOptions.html
此外,您还可以控制IdentityServer是否通过IAuthenticationSessionValidator接收来自用户的传入cookie。基本的方法是查看用户登录的时间,如果cookie超过30天,则不允许使用cookie。https://identityserver.github.io/Documentation/docsv2/advanced/session-invalidation.html
https://stackoverflow.com/questions/37236296
复制相似问题