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 verification bug with JWT credentials #257

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

andresuribe87
Copy link
Contributor

This fixes a bug where the presentations were throwing errors when the verifiable credentials contained in them were JWTs (instead of elements of type VerifiableCredential).

The test I added fails before the changes, and passes after the updates.

if err != nil {
err := errors.Wrapf(err, "getting claim as go-json: <%s>", claim)
logrus.WithError(err).Error()
return err
Copy link
Member

Choose a reason for hiding this comment

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

util.NewErrorf()...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Keeping it here for consistency, and preventing scope creep. This should be addressed in #258

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

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

I did a quick check and it seems we are not using this in SSI-Service so we don't have to change anything there

@andresuribe87 andresuribe87 merged commit c0926ad into TBD54566975:main Nov 28, 2022
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.

None yet

3 participants