-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
*/ | ||
@PostMapping("presence-check/submit") | ||
@PowerAuthEncryption(scope = EciesScope.ACTIVATION_SCOPE) | ||
@PowerAuth(resourceId = "/api/identity/presence-check/submit", signatureType = PowerAuthSignatureTypes.POSSESSION) |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
...ngserver/statemachine/action/presencecheck/MoveToPresenceCheckVerificationPendingAction.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
...main/java/com/wultra/app/onboardingserver/controller/api/IdentityVerificationController.java
Outdated
Show resolved
Hide resolved
...main/java/com/wultra/app/onboardingserver/controller/api/IdentityVerificationController.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup!
No description provided.