Skip to content

Commit 3c5614f

Browse files
Update JSONParser.java
1 parent 9f77a94 commit 3c5614f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/org/privacyidea/JSONParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ LinkedHashMap<String, String> extractAuthToken(String serverResponse)
8383
int respDate = obj.getAsJsonPrimitive(TIME).getAsInt();
8484
int expDate = JsonParser.parseString(dec).getAsJsonObject().getAsJsonPrimitive(EXP).getAsInt();
8585
int difference = expDate - respDate;
86-
privacyIDEA.log("Authentication token expires in " + difference / 60 + " minutes.");
86+
privacyIDEA.log("Authentication token's durability: " + difference / 60 + " minutes. Token expires at: " + new Date(expDate * 1000L));
8787

8888
return new LinkedHashMap<>(Map.of(AUTH_TOKEN, authToken, AUTH_TOKEN_EXP, String.valueOf(expDate)));
8989
}
9090
catch (Exception e)
9191
{
92-
//privacyIDEA.error("Response did not contain an authorization token: " + formatJson(serverResponse));
9392
privacyIDEA.error("Auth token extraction failed: " + e);
9493
}
9594
}

0 commit comments

Comments
 (0)