check clientid

This commit is contained in:
25W0075
2025-11-27 16:51:53 +09:00
parent 60e3ba6adc
commit 6c05e29ea5
@@ -806,34 +806,36 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
//weblogic 에서는 tempProp.get 이 property로 return 해어 아래처럼 수정함. ClassCastException 발생함.
//Properties inboundHeaders = (Properties) tempProp.get(HttpAdapterServiceKey.INBOUND_HEADER);
Properties inboundHeaders = null;
String authorization = "";
try {
Object headerObj = tempProp.get(HttpAdapterServiceKey.INBOUND_HEADER);
System.out.println("*** inboundheader Ojb:"+headerObj);
if (headerObj instanceof Properties) { //tomcat
inboundHeaders = (Properties) headerObj;
System.out.println("*** inboundHeaders tomcat:"+inboundHeaders);
for (String k : inboundHeaders.stringPropertyNames()) {
System.out.println("*** inboundheader k is:"+k);
if (k.equalsIgnoreCase("authorization")) {
authorization = inboundHeaders.getProperty(k);
break;
}
}
} else if (headerObj instanceof String) { //weblogic
inboundHeaders = new Properties();
inboundHeaders.load(new StringReader((String) headerObj));
System.out.println("*** inboundHeaders weblogic:"+inboundHeaders);
String json = (String) headerObj;
JSONParser parser = new JSONParser();
JSONObject obj = (JSONObject) parser.parse(json);
for (Object k : obj.keySet()) {
if (((String) k).equalsIgnoreCase("authorization")) {
authorization = (String) obj.get(k);
System.out.println("*** inboundHeaders authorization weblogic:"+authorization);
break;
}
}
}
} catch (IOException e) {
e.printStackTrace();
}
//* jwhong
String key ="authorization";
String authorization = null;
for (String k : inboundHeaders.stringPropertyNames()) {
System.out.println("*** inboundheader k is:"+k);
if (k.equalsIgnoreCase(key)) {
authorization = inboundHeaders.getProperty(k);
break;
}
}
// String authorization = inboundHeaders.getProperty("authorization");
String jwtToken = "";
if (authorization != null && authorization.startsWith("Bearer ")) {