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 #539: Polish iProov provider #540

Merged
merged 5 commits into from
Nov 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change log level to debug
  • Loading branch information
banterCZ committed Nov 23, 2022
commit 7b5d9cfb3735130b1e1598426a92254427b279b9
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public IProovRestApiService(
public ResponseEntity<String> generateEnrolToken(OwnerId id) throws RestClientException {
final ServerClaimRequest request = createServerClaimRequest(id);

logger.info("Calling /claim/enrol/token userId={}, {}", request.getUserId(), id);
logger.debug("Calling /claim/enrol/token userId={}, {}", request.getUserId(), id);
return restClient.post("/claim/enrol/token", request, STRING_TYPE_REFERENCE);
}

Expand Down Expand Up @@ -139,7 +139,7 @@ public String getFilename() {
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.setContentType(MediaType.MULTIPART_FORM_DATA);

logger.info("Calling /claim/enroll/image token={}, {}", token, id);
logger.debug("Calling /claim/enroll/image token={}, {}", token, id);
return restClient.post("/claim/enrol/image", bodyBuilder.build(), EMPTY_QUERY_PARAMS, httpHeaders, STRING_TYPE_REFERENCE);
}

Expand All @@ -152,7 +152,7 @@ public String getFilename() {
public ResponseEntity<String> generateVerificationToken(OwnerId id) throws RestClientException {
final ServerClaimRequest request = createServerClaimRequest(id);

logger.info("Calling /claim/verify/token userId={}, {}", request.getUserId(), id);
logger.debug("Calling /claim/verify/token userId={}, {}", request.getUserId(), id);
return restClient.post("/claim/verify/token", request, STRING_TYPE_REFERENCE);
}

Expand All @@ -175,7 +175,7 @@ public ResponseEntity<String> validateVerification(OwnerId id, String token) thr
final String userId = getUserId(id);
request.setUserId(userId);

logger.info("Calling /claim/verify/validate userId={}, token={}, {}", userId, token, id);
logger.debug("Calling /claim/verify/validate userId={}, token={}, {}", userId, token, id);
return restClient.post("/claim/verify/validate", request, STRING_TYPE_REFERENCE);
}

Expand Down