private void ExtractEnvelopeInfo() { string envelopeText = _RawToken.Envelope; try { _Envelope = SOSCodecs.Deserialize(envelopeText, typeof(JWTEnvelope)) as JWTEnvelope; } catch (Exception ex) { throw new SerializationException(string.Format("Failed To Deserialize Base 64 encoded JWT Envelope to JSON Object. Text:{0}", envelopeText), ex); } }
private void ExtractClaimsInfo() { string claimsText = _RawToken.Claims; try { _Claims = SOSCodecs.Deserialize(claimsText, typeof(JWTClaims)) as JWTClaims; } catch (Exception ex) { throw new SerializationException(string.Format("Failed To Deserialize Base 64 encoded JWT Claims to JSON Object. Text:{0}", claimsText), ex); } }