Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Fixes serialization and deserialization of cached UserInfo claims #78

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

Rain336
Copy link
Member

@Rain336 Rain336 commented Jun 27, 2024

Fixes a bug with serializing and deserializing Claims that have been requested from the UserInfo endpoint.
Currently this is done using a ValueTuple, which is incorrectly serialized as an empty json object, and at deserialization causes a NullReferenceException.
This PR adds a CachedClaim class that is used for serialization instead.

@Rain336 Rain336 requested a review from Metawolve June 27, 2024 18:40
@Rain336 Rain336 merged commit 99c1458 into main Jun 27, 2024
@Rain336 Rain336 deleted the fix/claims-serialization branch June 27, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants