更新+mock部分

This commit is contained in:
2026-04-16 18:12:09 +08:00
parent d5c06eca28
commit adadb3bf1d
40 changed files with 884 additions and 174 deletions

View File

@@ -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;