Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Conversation

@ariveron
Copy link
Contributor

Consumers may want to access the raw JSON string that was used to deserialize the JsonWebKeySet object to use with other packages such as Microsoft.IdentityModel.Tokens.JsonWebKeySet. This avoids having to serialize the object again, or making a second REST call to the identity server to get the JSON string.

Consumers may want to access the raw JSON string that was used to deserialize the JsonWebKeySet object to use with other libraries such as Microsoft.IdentityModel.Tokens.JsonWebKeySet. This avoids having to serialize the object again to get the JSON string.
@leastprivilege leastprivilege self-assigned this Jul 30, 2022
/// The JSON string used to deserialize this object
/// </summary>
[JsonIgnore]
public string RawData { get; set; };
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't entirely sure what an appropriate name for this property should be. Thinking about it again, maybe I should have suggested to use Raw instead of RawData, in keeping with the precedent set by the ProtocolResponse class. And maybe the set should be protected or private?

@leastprivilege
Copy link
Contributor

Thanks!

@leastprivilege leastprivilege merged commit 47e5555 into DuendeArchive:main Aug 14, 2022
@ariveron ariveron deleted the add-RawData-prop-to-JsonWebKeySet branch September 24, 2022 04:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants