최종 편집 May 23, 2025 3:07 PM (GMT+9) (초안 🚧) 본 문서에 적혀있지만, 제공되지 않는 페이로드가 있을 수 있습니다.

NOTE

JWT Specification

Authorization Header

Field Type Description Example
alg String 서명 알고리즘 HS256
typ String 토큰 타입 JWT

Authorization Payload

Claim Type Description Example
iss String URI 발급자. 토큰의 출처
https://accounts.google.com
sub String 주제. 소유자. 사용자 ID account_123 또는
service-frontend
aud String String[] 대상자
exp Unix Timestamp 만료 시간 1716123456
nbf Unix Timestamp Not Before (활성 시작 시간) 1716120000
iat Unix Timestamp 발급 시간 (Issued At) 1716110000
jti String JWT ID (고유 식별자) uuid-1234
scope String RFC 6749
OAuth 2.0 권한 범위 “read:user write:post admin”
roles
(public claim) String[] de facto standard
역할 기반 인증 (RBAC) ["admin", "editor"]
permissions
(private claim) String[] de facto standard
세밀한 권한 부여 (PBAC) ["post:delete", "comment:edit"]