[ 
https://issues.apache.org/jira/browse/KNOX-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16176397#comment-16176397
 ] 

Colm O hEigeartaigh commented on KNOX-1060:
-------------------------------------------

No, pretty sure I didn't touch this either. Possibly the behaviour changed in 
the Nimbus library following an upgrade. The "exp" claim is treated as a Date 
and calling "getStringClaim("exp")" returns null as a result. I think this is a 
bit dubious from Nimbus, I would have thought that all claims should be 
accessible as a "String", but the test showed that it returns null, hence the 
change.

> JWT.getExpires() returns null
> -----------------------------
>
>                 Key: KNOX-1060
>                 URL: https://issues.apache.org/jira/browse/KNOX-1060
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Colm O hEigeartaigh
>            Priority: Minor
>             Fix For: 0.14.0
>
>
> JWT.getExpires() returns null even when there is an expiry Date:
> SEVERE: Unable to parse JWT token: java.text.ParseException: The "exp" claim 
> is not a String



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to