Skip to content

Commit eae8fcd

Browse files
committed
Read claims into data structure after verification
1 parent a3b2771 commit eae8fcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scitokens_internal.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,13 @@ void
312312
SciToken::deserialize(const std::string &data, const std::vector<std::string> allowed_issuers) {
313313
m_decoded.reset(new jwt::decoded_jwt(data));
314314

315-
// Set all the claims
316-
m_claims = m_decoded->get_payload_claims();
317-
318315
scitokens::Validator val;
319316
val.add_allowed_issuers(allowed_issuers);
320317
val.set_validate_all_claims_scitokens_1(false);
321318
val.verify(*m_decoded);
319+
320+
// Set all the claims
321+
m_claims = m_decoded->get_payload_claims();
322322
}
323323

324324

0 commit comments

Comments
 (0)