Skip to content

Commit 6ed4cc1

Browse files
authored
Merge pull request #112 from vokac/only-scitoken-mandatory-nbf
Claim 'nbf' is mandatory only for SCITOKENS
2 parents 3c5b8fc + aed6cc4 commit 6ed4cc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scitokens_internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ 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 ||
452+
m_profile == SciToken::Profile::SCITOKENS_2_0) {
452453
if (!jwt.has_payload_claim("nbf")) {
453454
throw JWTVerificationException("'nbf' claim is mandatory");
454455
}

0 commit comments

Comments
 (0)