Skip to content
Snippets Groups Projects
Commit c9138ee7 authored by Alok Joshi's avatar Alok Joshi
Browse files

capture exact error message when signature check fails

parent a0b18c1f
No related branches found
No related tags found
1 merge request!389Capture exact error message when signature check fails
Pipeline #207100 failed
......@@ -62,7 +62,7 @@ public class SubscriberListenerApi {
// Use the secret you send to the subscriber registration create request
return new ChallengeResponse(HashingUtil.hashString(crc, this.serviceConfig.getSubscriberSecret()));
} catch (SignatureServiceException e) {
throw new ValidationException("Authorization signature validation Failed");
throw new ValidationException(e.getMessage());
}
}
......@@ -78,7 +78,7 @@ public class SubscriberListenerApi {
logger.error("An error occurred in Test Acknowledgement: " + e.toString());
}
} catch (SignatureServiceException e) {
throw new ValidationException("Authorization signature validation Failed");
throw new ValidationException(e.getMessage());
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment