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 #389: SCA passes even though iProov failed #390

Merged
merged 7 commits into from
Sep 26, 2022
Merged

Conversation

banterCZ
Copy link
Member

No description provided.

*/
@PostMapping("presence-check/submit")
@PowerAuthEncryption(scope = EciesScope.ACTIVATION_SCOPE)
@PowerAuth(resourceId = "/api/identity/presence-check/submit", signatureType = PowerAuthSignatureTypes.POSSESSION)
Copy link
Member Author

Choose a reason for hiding this comment

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

@kober32 A new endpoint.

@@ -182,13 +180,12 @@ private OtpVerifyResponse verifyPresenceCheck(final OnboardingProcessEntity proc
final String rejectReason = idVerification.getRejectReason();
final RejectOrigin rejectOrigin = idVerification.getRejectOrigin();

if (errorOrigin == ErrorOrigin.PRESENCE_CHECK && StringUtils.isNotBlank(errorDetail)
|| rejectOrigin == RejectOrigin.PRESENCE_CHECK && StringUtils.isNotBlank(rejectReason)) {
if (errorOrigin == ErrorOrigin.PRESENCE_CHECK || rejectOrigin == RejectOrigin.PRESENCE_CHECK) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure whether this is a permanent or temporary change. When we called iProov validate before verification, the reject reason was null so SCA passed.


.and()
.withExternal()
.source(OnboardingState.PRESENCE_CHECK_VERIFICATION_PENDING)
Copy link
Member Author

Choose a reason for hiding this comment

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

@kober32 You may expect PRESENCE_CHECK / VERIFICATION_PENDING at the status endpoint.

@banterCZ banterCZ marked this pull request as ready for review September 26, 2022 06:58
Copy link
Contributor

@saalistaja saalistaja left a comment

Choose a reason for hiding this comment

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

Looks good, but I have not tested this.

Copy link
Member

@romanstrobl romanstrobl left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

@banterCZ banterCZ merged commit 5c2575b into develop Sep 26, 2022
@banterCZ banterCZ deleted the issues/389-sca-fix branch September 26, 2022 13:00
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.

3 participants