We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c5b8fc + aed6cc4 commit 6ed4cc1Copy full SHA for 6ed4cc1
src/scitokens_internal.h
@@ -448,7 +448,8 @@ class Validator {
448
if (!jwt.has_payload_claim("iat")) {
449
throw JWTVerificationException("'iat' claim is mandatory");
450
}
451
- if (m_profile != SciToken::Profile::AT_JWT) {
+ if (m_profile == SciToken::Profile::SCITOKENS_1_0 ||
452
+ m_profile == SciToken::Profile::SCITOKENS_2_0) {
453
if (!jwt.has_payload_claim("nbf")) {
454
throw JWTVerificationException("'nbf' claim is mandatory");
455
0 commit comments