Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给RefreshToken增加滑动过期选项 #129

Closed
gmf520 opened this issue Mar 1, 2020 · 0 comments · Fixed by #141
Closed

给RefreshToken增加滑动过期选项 #129

gmf520 opened this issue Mar 1, 2020 · 0 comments · Fixed by #141
Labels
Feature 🔨 新功能,新特性 Finished ✔️ 实现并完工
Milestone

Comments

@gmf520
Copy link
Member

gmf520 commented Mar 1, 2020

您的功能请求与现有问题有关吗?请描述
现有的RefreshToken的过期时间是固定的,会造成操作过程中突然过期的风险,在某些情况下不适用

描述您想要的解决方案
给RefreshToken增加滑动过期的选择,可以按照需求使用滑动过期还是绝对过期策略

描述你考虑过的替代方案
给Jwt的配置增加IsRefreshAbsoluteExpiredbool属性进行配置

"Jwt": {
  "Issuer": "osharp identity",
  "Audience": "osharp angular demo",
  "Secret": "{8619F7C3-B53C-4B85-99F0-983D351ECD82}",
  "AccessExpireMins": 5,
  "RefreshExpireMins": 10080, // 7天
  "IsRefreshAbsoluteExpired": true 
}
@gmf520 gmf520 added the Feature 🔨 新功能,新特性 label Mar 1, 2020
@gmf520 gmf520 added the Finished ✔️ 实现并完工 label Mar 1, 2020
@gmf520 gmf520 closed this as completed Mar 1, 2020
@gmf520 gmf520 added this to the v3.1.2 milestone Mar 1, 2020
@gmf520 gmf520 linked a pull request Mar 25, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 🔨 新功能,新特性 Finished ✔️ 实现并完工
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant