Skip to content

Commit bc75ee2

Browse files
authored
Merge pull request #94 from docusign/ergin-returnJWTAuthError
surface auth error for JWTUserToken()
2 parents a8c6482 + 29f47f8 commit bc75ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/docusign/esign/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ public OAuth.OAuthToken requestJWTUserToken(String clientId, String userId, java
720720
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
721721
OAuth.OAuthToken oAuthToken = mapper.readValue(response.getEntityInputStream(), OAuth.OAuthToken.class);
722722
if (oAuthToken.getAccessToken() == null || oAuthToken.getAccessToken() == "" || oAuthToken.getExpiresIn() <= 0) {
723-
throw new ApiException("Error while requesting an access token: " + oAuthToken);
723+
throw new ApiException("Error while requesting an access token: " + response.toString());
724724
}
725725
return oAuthToken;
726726
} catch (JsonParseException e) {

0 commit comments

Comments
 (0)