File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ friend class scitokens::Validator;
206206 m_claims[" jti" ] = jwt::claim (std::string (uuid_str));
207207
208208 if (m_serialize_profile == Profile::SCITOKENS_2_0) {
209- m_claims[" ver" ] = jwt::claim (std::string (" scitokens :2.0" ));
209+ m_claims[" ver" ] = jwt::claim (std::string (" scitoken :2.0" ));
210210 auto iter = m_claims.find (" aud" );
211211 if (iter == m_claims.end ()) {
212212 m_claims[" aud" ] = jwt::claim (std::string (" ANY" ));
@@ -312,7 +312,7 @@ class Validator {
312312 throw jwt::token_verification_exception (" 'ver' claim value must be a string (if present)" );
313313 }
314314 std::string ver_string = claim.as_string ();
315- if (ver_string == " scitokens:2.0" ) {
315+ if (( ver_string == " scitokens:2.0" ) || (ver_string == " scitoken:2.0 " ) ) {
316316 must_verify_everything = false ;
317317 if ((m_validate_profile != SciToken::Profile::COMPAT) &&
318318 (m_validate_profile != SciToken::Profile::SCITOKENS_2_0))
You can’t perform that action at this time.
0 commit comments