client test
This commit is contained in:
+15
-1
@@ -818,13 +818,27 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
String authorization = inboundHeaders.getProperty("authorization");
|
||||
//* jwhong
|
||||
String key ="authorization";
|
||||
String authorization = null;
|
||||
|
||||
for (String k : inboundHeaders.stringPropertyNames()) {
|
||||
if (k.equalsIgnoreCase(key)) {
|
||||
authorization = inboundHeaders.getProperty(k);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// String authorization = inboundHeaders.getProperty("authorization");
|
||||
String jwtToken = "";
|
||||
|
||||
if (authorization != null && authorization.startsWith("Bearer ")) {
|
||||
jwtToken = authorization.substring(7); // "Bearer " 이후의 JWT만 추출
|
||||
}
|
||||
|
||||
System.out.println("*** authorization is:"+authorization);
|
||||
System.out.println("*** jwtToken is:"+jwtToken);
|
||||
|
||||
/* 업체정보 */
|
||||
String clientId = JwtClientIdExtractor(jwtToken);
|
||||
method.setHeader("clientId", clientId);
|
||||
|
||||
Reference in New Issue
Block a user