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 ada0c1e + 9baf649 commit 2a9205eCopy full SHA for 2a9205e
src/scitokens_internal.h
@@ -369,6 +369,11 @@ class Enforcer {
369
m_validator.add_claim_validator("aud", &Enforcer::aud_validator, this);
370
m_validator.add_claim_validator("scope", &Enforcer::scope_validator, this);
371
std::vector<std::string> critical_claims = {"scope"};
372
+
373
+ // If any audiences are in the given to us, then force the validator to check it.
374
+ if (!m_audiences.empty()) {
375
+ critical_claims.push_back("aud");
376
+ }
377
m_validator.add_critical_claims(critical_claims);
378
}
379
0 commit comments