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

feature/SPRIND-61_conformance-fixes #48

Merged
merged 26 commits into from
Oct 27, 2024

Conversation

sanderPostma
Copy link
Contributor

No description provided.

Copy link
Contributor

@nklomp nklomp left a comment

Choose a reason for hiding this comment

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

Se eremarks. We cannot all of a sudden return less JWS recipients than inputs

})
)
)).filter(signature => signature !== undefined ) as JwsJsonSignatureWithIdentifier[]
Copy link
Contributor

Choose a reason for hiding this comment

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

This cannot be correct. We now all of a sudden return less objects than we should. Why is this change needed?

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 am possibly adding undefined elements on line 432. I need to return JwsJsonSignatureWithIdentifier[] , not (JwsJsonSignatureWithIdentifier | undefined)[]

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, but the whole point is that you started introducing this. If for whatever reason the signature could be empty (which according to the spec it really can't for a jws json general AFAIK), then it still should return the identifiers, not all of a sudden filter everything out.

But IMO this change reeks of something else going wrong when calling this function. So it should be solved outside of this function. If we really need this then we probably need something like an explicit param that allows the new behaviour (and only when that param is 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.

resolved

packages/jwt-service/src/types/IJwtService.ts Outdated Show resolved Hide resolved
@nklomp nklomp merged commit b277815 into develop Oct 27, 2024
1 check passed
@nklomp nklomp deleted the feature/SPRIND-61_conformance-fixes branch November 26, 2024 18:01
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.

4 participants