Skip to content

Commit 0781734

Browse files
Merge pull request #292 from IABTechLab/sch-UID2-5355-fix-jwt-token-validation
sch-UID2-5355 moved log for being unable to retrieve aws kms key id
2 parents 576afff + e3dbeae commit 0781734

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/uid2/core/service/JWTTokenProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ private String signJwtContent(KmsClient kmsClient, String jwtContents) throws Jw
8989
}
9090

9191
if (keyId == null || keyId.isEmpty()) {
92+
String message = "Unable to retrieve the AWS KMS Key Id from config. Unable to sign JWT token";
93+
LOGGER.error(message);
9294
if (enforceJWT) {
93-
String message = "Unable to retrieve the AWS KMS Key Id from config. Unable to sign JWT token";
94-
LOGGER.error(message);
9595
throw new JwtSigningException(Optional.of(message));
9696
} else {
9797
return "";

0 commit comments

Comments
 (0)