Merge branch 'master' into master

This commit is contained in:
mislayming
2024-12-10 22:04:56 +08:00
committed by GitHub
21 changed files with 76 additions and 19 deletions

View File

@@ -18,6 +18,9 @@ public class AuthenticationConfig {
@Value("${s2.authentication.include.path:/api}")
private String includePath;
@Value("${s2.authentication.strategy:http}")
private String strategy;
@Value("${s2.authentication.enable:false}")
private boolean enabled;

View File

@@ -6,6 +6,8 @@ import jakarta.servlet.http.HttpServletResponse;
public interface UserStrategy {
String getStrategyName();
boolean accept(boolean isEnableAuthentication);
User findUser(HttpServletRequest request, HttpServletResponse response);