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