mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-04 01:52:21 +08:00
feat:jwt续期
This commit is contained in:
parent
8b81b9aa3d
commit
35524efb31
@ -82,7 +82,7 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
|
||||
// refresh token有两种使用方式:重复使用(true)、非重复使用(false),默认为true
|
||||
// 1 重复使用:access token过期刷新时, refresh token过期时间未改变,仍以初次生成的时间为准
|
||||
// 2 非重复使用:access token过期刷新时, refresh token过期时间延续,在refresh token有效期内刷新便永不失效达到无需再次登录的目的
|
||||
.reuseRefreshTokens(false);
|
||||
.reuseRefreshTokens(true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -59,13 +59,13 @@ public interface AuthConstants {
|
||||
/**
|
||||
* 有来商城后台管理客户端ID
|
||||
*/
|
||||
String ADMIN_CLIENT_ID="youlai-mall-admin";
|
||||
String ADMIN_CLIENT_ID="youlai-admin";
|
||||
|
||||
|
||||
/**
|
||||
* 有来商城微信小程序客户端ID
|
||||
*/
|
||||
String WEAPP_CLIENT_ID="youlai-mall-weapp";
|
||||
String WEAPP_CLIENT_ID="mall-weapp";
|
||||
|
||||
/**
|
||||
* 后台管理接口路径匹配
|
||||
|
@ -85,9 +85,7 @@ public class ResourceServerConfig {
|
||||
}
|
||||
|
||||
/**
|
||||
* token无效或者已过期
|
||||
*
|
||||
* @return
|
||||
* token无效或者已过期自定义响应
|
||||
*/
|
||||
@Bean
|
||||
ServerAuthenticationEntryPoint authenticationEntryPoint() {
|
||||
|
Loading…
Reference in New Issue
Block a user