Skip to content

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

Description

@gmf520

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

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

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

"Jwt": {
  "Issuer": "osharp identity",
  "Audience": "osharp angular demo",
  "Secret": "{8619F7C3-B53C-4B85-99F0-983D351ECD82}",
  "AccessExpireMins": 5,
  "RefreshExpireMins": 10080, // 7天
  "IsRefreshAbsoluteExpired": true 
}

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions