From d8c1cbdbeb0275700cc029cdec37fbb15ad76353 Mon Sep 17 00:00:00 2001 From: Jan Dusil Date: Mon, 6 May 2024 10:20:44 +0200 Subject: [PATCH] - improve exception msg --- .../powerauth/app/nextstep/service/AuthenticationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerauth-nextstep/src/main/java/io/getlime/security/powerauth/app/nextstep/service/AuthenticationService.java b/powerauth-nextstep/src/main/java/io/getlime/security/powerauth/app/nextstep/service/AuthenticationService.java index d8b1e4d8a..8d2002a61 100644 --- a/powerauth-nextstep/src/main/java/io/getlime/security/powerauth/app/nextstep/service/AuthenticationService.java +++ b/powerauth-nextstep/src/main/java/io/getlime/security/powerauth/app/nextstep/service/AuthenticationService.java @@ -552,7 +552,7 @@ public CombinedAuthenticationResponse authenticateCombined(CombinedAuthenticatio final OtpEntity otp = otpService.findOtp(request.getOtpId(), request.getOperationId()); if (otp.getCredentialDefinition() == null || otp.getCredentialDefinition().getName() == null) { - throw new InvalidRequestException("Credential definition is not defined for operation with OTP Id and Operation Id:" + request.getOtpId() + ", " + request.getOperationId()); + throw new InvalidRequestException("Credential definition is not set for operation with OTP Id and Operation Id: " + request.getOtpId() + ", " + request.getOperationId()); } if (otp.getOtpDefinition().isDataAdapterProxyEnabled()) { logger.info("Combined authentication proxied through Data Adapter, OTP ID: {}", request.getOtpId());