fix(itms-api): getAccessTokenInfo Bearer 접두 제거 버그 수정 (로그인후 메인 EgovHeader 500 해소)
2번째 replace 가 authorization 원문을 재읽어 strTocken 을 덮어써 'Bearer ' 접두가 남던 버그 → JwtHelper.decode MalformedInputException. strTocken 연쇄 치환으로 정정. 검증: 재빌드 후 /main/EgovHeader.do 500→200, 로그인→메인 4/4 엔드포인트 200. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
5e5ccc0ec7
commit
51831b4840
@ -492,8 +492,11 @@ public class CommonUtil
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
String strTocken = "";
|
String strTocken = "";
|
||||||
|
// 2026-07-19 fix: 2번째 replace 가 authorization(원문)을 다시 읽어 strTocken 을 덮어써
|
||||||
|
// "Bearer " 접두가 남던 버그 → JwtHelper.decode 시 MalformedInputException.
|
||||||
|
// strTocken 기준으로 연쇄 치환하도록 정정(대/소문자 모두 제거).
|
||||||
strTocken = StringUtils.replace(authorization, "Bearer ","");
|
strTocken = StringUtils.replace(authorization, "Bearer ","");
|
||||||
strTocken = StringUtils.replace(authorization, "bearer ","");
|
strTocken = StringUtils.replace(strTocken, "bearer ","");
|
||||||
|
|
||||||
Jwt jwt = JwtHelper.decode(strTocken);
|
Jwt jwt = JwtHelper.decode(strTocken);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user