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

Fix serialization of byte arrays in SD-JWT #132

Merged
merged 11 commits into from
Sep 27, 2024
Merged

Conversation

nodh
Copy link
Contributor

@nodh nodh commented Sep 19, 2024

Now it works, just leave the deserialization up to implementers.

@nodh nodh self-assigned this Sep 19, 2024
@JesusMcCloud
Copy link
Collaborator

JesusMcCloud commented Sep 19, 2024

context, please! what is going on and why?

@nodh nodh marked this pull request as ready for review September 26, 2024 11:10
Comment on lines 66 to 68
familyName?.let { optionalClaim(claimNames, "family_name", it) },
userInfo.userInfo.birthDate?.let { optionalClaim(claimNames, "date_of_birth", it) },
userInfo.userInfo.picture?.let { optionalClaim(claimNames, CLAIM_PORTRAIT, it.decodeToByteArray(Base64())) },
Copy link
Collaborator

Choose a reason for hiding this comment

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

These could also be constants

@@ -160,6 +144,18 @@ class AgentSdJwtTest : FreeSpec({

})

private fun buildPresDef(vararg attributeName: String) = PresentationDefinition(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know it's odd coming from me, but still: I'd spell out the function name

@nodh nodh merged commit 547288a into develop Sep 27, 2024
@nodh nodh deleted the fix/sdjwt-serialization branch September 27, 2024 08:05
@nodh nodh added this to the 5.0 milestone Sep 27, 2024
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