You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ 주의사항 (Postman 테스트 등)
저희는 게이트웨이에서 토큰을 파싱해서 X-client-role 헤더에 넣는 구조니까
내부 서비스 (예: Auth) 입장에서는 JWT를 볼 수가 없습니다!
그래서 헤더가 없으면 @RoleCheck는 "권한 없음" 오류가 발생합니다.
설명
저희는 게이트웨이에서 토큰을 파싱해서 X-client-role 헤더에 넣는 구조니까
내부 서비스 (예: Auth) 입장에서는 JWT를 볼 수가 없습니다!
그래서 헤더가 없으면 @RoleCheck는 "권한 없음" 오류가 발생합니다.
밑에 이미지처럼 넣어주세요!
[적용 예시]

(실 서비스에서는 Gateway가 자동으로 넣어줌 → 문제 없음)
상태