Skip to content

Conversation

@jonpharry
Copy link

Modified code that matches allowed methods against enrolled methods so that "signature" type in enrolled method matches signatures_ in allowed methods.

@jonpharry jonpharry requested a review from Loxstomper April 14, 2022 20:01
enrollment.type === 'signature'));
(enrollment.type === 'signature' &&
assessment.allowedFactors.includes("signatures_"
+ enrollment.subType)));
Copy link

@scottmatthewandrews scottmatthewandrews Apr 19, 2022

Choose a reason for hiding this comment

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

This looks fine based on ISV handling of signatures vs signature and signature_subtype in PolicyAuth and has likely been validated locally by @jonpharry in any case.

(assessment.allowedFactors.includes('signatures') &&
enrollment.type === 'signature'));
(enrollment.type === 'signature' &&
assessment.allowedFactors.includes("signatures_"

Choose a reason for hiding this comment

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

Should these be single quotes to prevent injection?

@Loxstomper Loxstomper merged commit 88f50da into main Apr 19, 2022
@Loxstomper Loxstomper deleted the signatures-fix branch April 19, 2022 21:12
@Loxstomper Loxstomper restored the signatures-fix branch April 19, 2022 21:14
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