From 9e5e8bb1bf19b8e615d2d4fd302fbf92101575f8 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 14 Jun 2017 16:27:24 +0200 Subject: [PATCH] Added simple way to set the issued_at claim value to current UTC date time. --- library/security/jwt/src/jwt_claimset.e | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/security/jwt/src/jwt_claimset.e b/library/security/jwt/src/jwt_claimset.e index 962a0729..6e45bb71 100644 --- a/library/security/jwt/src/jwt_claimset.e +++ b/library/security/jwt/src/jwt_claimset.e @@ -259,6 +259,11 @@ feature -- Element change end end + set_issued_at_now_utc + do + set_issued_at (create {DATE_TIME}.make_now_utc) + end + set_jwt_id (jti: detachable READABLE_STRING_8) -- The "jti" (JWT ID) claim provides a unique identifier for the JWT. -- The identifier value MUST be assigned in a manner that ensures that