We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cabae29 commit 305d209Copy full SHA for 305d209
msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/ClientAssertion.java
@@ -54,11 +54,16 @@ public String assertion() {
54
if (assertionProvider != null) {
55
try {
56
String generatedAssertion = assertionProvider.call();
57
+
58
if (StringHelper.isBlank(generatedAssertion)) {
- throw new MsalClientException("Assertion provider returned null or empty assertion",
59
- AuthenticationErrorCode.INVALID_JWT);
+ throw new MsalClientException(
60
+ "Assertion provider returned null or empty assertion",
61
+ AuthenticationErrorCode.INVALID_JWT);
62
}
63
64
return generatedAssertion;
65
+ } catch (MsalClientException ex) {
66
+ throw ex;
67
} catch (Exception ex) {
68
throw new MsalClientException(ex);
69
0 commit comments