ApiConfig token.header.name 프러퍼티를 추가하여 token 헤더 프러퍼티 추가
This commit is contained in:
@@ -306,7 +306,8 @@ public class ApiAuthFilter implements HttpAdapterFilter {
|
||||
}
|
||||
|
||||
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)) {
|
||||
// QueryString으로 전달된 access_token 파라미터 확인
|
||||
String tokenParamName = PropManager.getInstance().getProperty("ApiConfig", "token.param.name", "access_token");
|
||||
|
||||
Reference in New Issue
Block a user