1.增加token自动续签功能(仅限于redis token模式),可配置化:开关、白名单、黑名单
2.项目默认token模式改为redis,并且开启自动续签功能
This commit is contained in:
+4
@@ -136,4 +136,8 @@ public interface SecurityConstants {
|
||||
* 登出URL
|
||||
*/
|
||||
String LOGOUT_URL = "/oauth/remove/token";
|
||||
/**
|
||||
* 默认token过期时间(1小时)
|
||||
*/
|
||||
Integer ACCESS_TOKEN_VALIDITY_SECONDS = 60 * 60;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user