You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2017/07/28 13:51:00 UTC
[jira] [Resolved] (SYNCOPE-1179) JWT "Date" claims are interpreted
using milliseconds instead of seconds
[ https://issues.apache.org/jira/browse/SYNCOPE-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved SYNCOPE-1179.
------------------------------------------
Resolution: Fixed
> JWT "Date" claims are interpreted using milliseconds instead of seconds
> -----------------------------------------------------------------------
>
> Key: SYNCOPE-1179
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1179
> Project: Syncope
> Issue Type: Bug
> Affects Versions: 2.0.4
> Reporter: Colm O hEigeartaigh
> Assignee: Colm O hEigeartaigh
> Fix For: 2.0.5, 2.1.0
>
>
> We currently treat (create + validate) JWT tokens with the claims "exp", "iat" and "nbf" as millisecond values. However the spec says that they should be seconds instead:
> https://tools.ietf.org/html/rfc7519
> NumericDate
> A JSON numeric value representing the number of seconds from
> 1970-01-01T00:00:00Z UTC until the specified UTC date/time,
> ignoring leap seconds.
> exp: ... Its value MUST be a number
> containing a NumericDate value.
> nbf: ... Its value MUST be a number containing a
> NumericDate value.
> iat: ... Its
> value MUST be a number containing a NumericDate value.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)