更新+mock部分
This commit is contained in:
@@ -14,7 +14,11 @@ public class AuthProperties {
|
||||
private String secret = "k12study-dev-secret-k12study-dev-secret";
|
||||
private Duration accessTokenTtl = Duration.ofHours(12);
|
||||
private Duration refreshTokenTtl = Duration.ofDays(7);
|
||||
private List<String> whitelist = new ArrayList<>(List.of("/actuator/**", "/auth/login", "/auth/refresh"));
|
||||
private List<String> whitelist = new ArrayList<>(List.of(
|
||||
"/actuator/**",
|
||||
"/auth/tokens",
|
||||
"/auth/tokens/refresh"
|
||||
));
|
||||
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
|
||||
Reference in New Issue
Block a user