Skip to content

Commit 56d005f

Browse files
committed
Debug github test failure
1 parent d3b178c commit 56d005f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

gxjwt/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependency>
1717
<groupId>com.auth0</groupId>
1818
<artifactId>java-jwt</artifactId>
19-
<version>4.0.0</version>
19+
<version>4.4.0</version>
2020
</dependency>
2121
<dependency>
2222
<groupId>com.fasterxml.jackson.core</groupId>

gxjwt/src/main/java/com/genexus/JWT/JWTCreator.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,16 @@ private String create_Aux(String algorithm, PrivateClaims privateClaims, JWTOpti
243243
}
244244
String signedJwt = "";
245245
try {
246+
if(algorithmType == null)
247+
{
248+
System.out.println("Algrithmm type null");
249+
}
250+
System.out.println("Algorithm type: " + algorithmType.getSigningKeyId());
251+
246252
signedJwt = tokenBuilder.sign(algorithmType);
247253
} catch (Exception e) {
248254
this.error.setError("JW006", e.getMessage());
255+
e.printStackTrace();
249256
return "";
250257
}
251258

gxjwt/src/test/java/com/genexus/test/jwt/asymmetric/ECDSACurvesPrimeJwtTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private void prime192v1() {
8686
//bulkTest_shouldWork(key, cert, alg, curve);
8787
options.setPrivateKey(key);
8888
options.setCertificate(cert);
89-
89+
9090
String token = jwt.doCreate(alg, claims, options);
9191
System.out.println("token: " + token);
9292
System.out.println("Error. Code: " + jwt.getErrorCode() + " Desc: " + jwt.getErrorDescription());

0 commit comments

Comments
 (0)