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.
1 parent 3c5b8fc commit af6d34aCopy full SHA for af6d34a
src/scitokens_internal.h
@@ -448,7 +448,7 @@ 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 || m_profile == SciToken::Profile::SCITOKENS_2_0) {
452
if (!jwt.has_payload_claim("nbf")) {
453
throw JWTVerificationException("'nbf' claim is mandatory");
454
0 commit comments