diff --git a/Dockerfile b/Dockerfile index 910099a8..e4d2ce7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="petr@wultra.com" # Prepare environment variables ENV JAVA_HOME=/opt/java/openjdk \ LB_HOME=/usr/local/liquibase \ - LB_VERSION=4.23.2 \ + LB_VERSION=4.30.0 \ PKG_RELEASE=1~jammy \ TOMCAT_HOME=/usr/local/tomcat \ TOMCAT_MAJOR=10 \ diff --git a/docs/PowerAuth-Enrollment-Server-1.10.0.md b/docs/PowerAuth-Enrollment-Server-1.10.0.md index f1beb3f9..07b33d76 100644 --- a/docs/PowerAuth-Enrollment-Server-1.10.0.md +++ b/docs/PowerAuth-Enrollment-Server-1.10.0.md @@ -19,3 +19,7 @@ The allowed values of the `environment` parameter are: - `production` - production APNs host is used for sending push messages For platforms other than APNs the parameter is not used, `null` value is allowed. + +## Internal Changes + +Operation claim now uses the new `POST /rest/v3/operation/claim` for claiming operations instead of `POST /rest/v3/operation/detail` to separate operation claim action from obtaining operation detail. diff --git a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/impl/service/MobileTokenService.java b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/impl/service/MobileTokenService.java index 742b4de4..4899cf75 100644 --- a/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/impl/service/MobileTokenService.java +++ b/enrollment-server/src/main/java/com/wultra/app/enrollmentserver/impl/service/MobileTokenService.java @@ -28,6 +28,7 @@ import com.wultra.security.powerauth.client.model.enumeration.SignatureType; import com.wultra.security.powerauth.client.model.enumeration.UserActionResult; import com.wultra.security.powerauth.client.model.error.PowerAuthClientException; +import com.wultra.security.powerauth.client.model.request.OperationClaimRequest; import com.wultra.security.powerauth.client.model.request.OperationDetailRequest; import com.wultra.security.powerauth.client.model.request.OperationFailApprovalRequest; import com.wultra.security.powerauth.client.model.request.OperationListForUserRequest; @@ -334,11 +335,11 @@ private OperationDetailResponse fetchOperationDetailInternal(@NotNull String ope * @throws MobileTokenException When the operation is in incorrect state. */ private OperationDetailResponse claimOperationInternal(@NotNull String operationId, @NotNull String userId) throws PowerAuthClientException, MobileTokenException { - final OperationDetailRequest operationDetailRequest = new OperationDetailRequest(); - operationDetailRequest.setOperationId(operationId); - operationDetailRequest.setUserId(userId); - final OperationDetailResponse operationDetail = powerAuthClient.operationDetail( - operationDetailRequest, + final OperationClaimRequest operationClaimRequest = new OperationClaimRequest(); + operationClaimRequest.setOperationId(operationId); + operationClaimRequest.setUserId(userId); + final OperationDetailResponse operationDetail = powerAuthClient.operationClaim( + operationClaimRequest, httpCustomizationService.getQueryParams(), httpCustomizationService.getHttpHeaders() ); diff --git a/pom.xml b/pom.xml index 92a45f94..174b8a8b 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.5 + 3.4.0 @@ -88,12 +88,13 @@ - 7.9.0 + 7.10.0 - 5.16.0 + 4.12.0 + 6.0.1 4.0.0 - 2.2.25 - 2.6.0 + 2.2.26 + 2.7.0 1.4.4 1.12.0-SNAPSHOT @@ -248,6 +249,13 @@ pom import + + + + com.squareup.okhttp3 + mockwebserver + ${okhttp3.version} +