Verify a Signed JWT - not support Integer

Hi there,

i have a policy "Verify a Signed JWT"  in APIGEE X

and inside the jwt there is "sub" with integer like this :

{
"alg": "RS256",
"kid": "admin",
"typ": "JWT"
}

PAYLOAD:DATA

{
"iss": "*.kuku.com",
"sub": 31964847,
"iat": 1707759731,
"exp": 1707763331,
"nbf": 1707759431
}

so the policy can't decode the "sub"

got this error : 

jwt.VerifyJWT.error : Unexpected type of JSON object member with key sub

is this policy not support integer value ? i tried to send in "aud" the same key as integer and there is aud key is not appears  at all....any ideas? 

 

Solved Solved
2 1 68
1 ACCEPTED SOLUTION

that's not a jwt

The "sub" value is a case-sensitive string

https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2

View solution in original post

1 REPLY 1

that's not a jwt

The "sub" value is a case-sensitive string

https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2