Skip to content

Commit af6d34a

Browse files
author
Petr Vokac
committed
Claim 'nbf' is mandatory only for SCITOKENS
1 parent 3c5b8fc commit af6d34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scitokens_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ class Validator {
448448
if (!jwt.has_payload_claim("iat")) {
449449
throw JWTVerificationException("'iat' claim is mandatory");
450450
}
451-
if (m_profile != SciToken::Profile::AT_JWT) {
451+
if (m_profile == SciToken::Profile::SCITOKENS_1_0 || m_profile == SciToken::Profile::SCITOKENS_2_0) {
452452
if (!jwt.has_payload_claim("nbf")) {
453453
throw JWTVerificationException("'nbf' claim is mandatory");
454454
}

0 commit comments

Comments
 (0)