Skip to content

Commit a3b2771

Browse files
committed
Set the claims when deserializing
1 parent c30afa2 commit a3b2771

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scitokens_internal.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ 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+
315318
scitokens::Validator val;
316319
val.add_allowed_issuers(allowed_issuers);
317320
val.set_validate_all_claims_scitokens_1(false);

0 commit comments

Comments
 (0)