Skip to content

Jwt.Builder should keep notBefore as an Instant #7442

Closed
@jzheaux

Description

@jzheaux

Like with issuedAt() and expiresAt(), notBefore() takes and Instant and it should stay that way.

Currently, the behavior is:

claims.put(NBF, nbf.getEpochSecond())

But it should be

claims.put(NBF, nbf);

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions