build: 获取公钥接口可以匿名进入

This commit is contained in:
CaptainB 2023-09-12 11:48:27 +08:00 committed by 刘瑞斌
parent 99fd8437c7
commit f3f5a826f3
2 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class LoginController {
@GetMapping(value = "/get-key")
@Operation(summary = "获取公钥")
public ResultHolder getKey(HttpServletResponse response) throws Exception {
public ResultHolder getKey() throws Exception {
RsaKey rsaKey = RsaUtil.getRsaKey();
return ResultHolder.success(rsaKey.getPublicKey());
}

View File

@ -13,6 +13,7 @@ public class FilterChainUtils {
filterChainDefinitionMap.put("/ldap/open", "anon");
filterChainDefinitionMap.put("/signout", "anon");
filterChainDefinitionMap.put("/is-login", "anon");
filterChainDefinitionMap.put("/get-key", "anon");
filterChainDefinitionMap.put("/css/**", "anon");
filterChainDefinitionMap.put("/js/**", "anon");
filterChainDefinitionMap.put("/images/**", "anon");