Skip to content

Commit

Permalink
Add logs to indicate that the token does not have sign permission. (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
moarychan authored Nov 12, 2024
1 parent deabcd8 commit a9bafa0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ public byte[] getSignedWithPrivateKey(String digestName, String digestValue, Str
} catch (IOException e) {
LOGGER.log(WARNING, "Failed to parse sign result response.", e);
}
} else {
LOGGER.log(WARNING,
"Can not get signature. It can be caused by missing 'sign' permission. To know how to add 'sign' permission, "
+ "see https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/keyvault/azure-security-keyvault-jca#key-less-certificates.");
}

byte[] signature;
Expand Down

0 comments on commit a9bafa0

Please sign in to comment.