aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus
diff options
context:
space:
mode:
authorThomas <>2023-05-24 12:11:17 +0200
committerThomas <>2023-06-05 16:56:32 +0200
commita760feffb1bd8ba49e482546f273ef16307d44d7 (patch)
tree883964086ee18ee6040de196f4f02e9e8009fa1c /modules/authmodule-eIDAS-v2/src/main/java/at/asitplus
parenta00043515f91042abe1388d160e64ea121d14293 (diff)
downloadNational_eIDAS_Gateway-a760feffb1bd8ba49e482546f273ef16307d44d7.tar.gz
National_eIDAS_Gateway-a760feffb1bd8ba49e482546f273ef16307d44d7.tar.bz2
National_eIDAS_Gateway-a760feffb1bd8ba49e482546f273ef16307d44d7.zip
chore(matching): optimize error handling for matching by ID Austria
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/main/java/at/asitplus')
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java
index 644c1543..726e5a07 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/ReceiveMobilePhoneSignatureResponseTask.java
@@ -216,6 +216,10 @@ public class ReceiveMobilePhoneSignatureResponseTask extends AbstractAuthServlet
}
+ } catch (WorkflowException e) {
+ log.warn("Matching by ID Austria has an work-flow error: {}", e.getMessage());
+ throw new TaskExecutionException(pendingReq, e.getMessage(), e);
+
} catch (final AuthnResponseValidationException e) {
log.info(ERROR_GENERIC, e.getMessage());
throw new TaskExecutionException(pendingReq, ERROR_MSG_03, e);
@@ -236,7 +240,6 @@ public class ReceiveMobilePhoneSignatureResponseTask extends AbstractAuthServlet
new AuthnResponseValidationException(ERROR_PVP_10, new Object[]{MODULE_NAME_FOR_LOGGING}, e));
} catch (final Exception e) {
- // todo catch ManualFixNecessaryException in any other way?
log.info("PVP response validation FAILED. Msg: {}",e.getMessage(), e);
throw new TaskExecutionException(pendingReq, ERROR_MSG_03,
new AuthnResponseValidationException(ERROR_PVP_12, new Object[]{MODULE_NAME_FOR_LOGGING, e.getMessage()}, e));