ApiConfig token.header.name 프러퍼티를 추가하여 token 헤더 프러퍼티 추가

This commit is contained in:
curry772
2026-04-15 17:39:59 +09:00
parent dd9fc6fbdb
commit bebf5fa36d
@@ -306,7 +306,8 @@ public class ApiAuthFilter implements HttpAdapterFilter {
} }
public static String extractBearerToken(HttpServletRequest request) throws JwtAuthException { public static String extractBearerToken(HttpServletRequest request) throws JwtAuthException {
String authorization = request.getHeader("Authorization"); String tokenHeaderName = PropManager.getInstance().getProperty("ApiConfig", "token.header.name", "Authorization");
String authorization = request.getHeader(tokenHeaderName);
if (StringUtils.isBlank(authorization)) { if (StringUtils.isBlank(authorization)) {
// QueryString으로 전달된 access_token 파라미터 확인 // QueryString으로 전달된 access_token 파라미터 확인
String tokenParamName = PropManager.getInstance().getProperty("ApiConfig", "token.param.name", "access_token"); String tokenParamName = PropManager.getInstance().getProperty("ApiConfig", "token.param.name", "access_token");