cyberark / conjur-api-java

Java client for the CyberArk Conjur API
Apache License 2.0
17 stars 14 forks source link

authenticate fails due to a missing timestamp on the returned auth token #19

Closed ryanprior closed 6 years ago

ryanprior commented 6 years ago

Tim Fleming reported this issue.

He did something like this:

Conjur conjur = new Conjur(username, pass);
cojur.variables().retrieveSecret('password');

Instead of getting the secret, he gets a Java.Lang.NullPointerException because the timestamp field is not set in the token. This is related to a recent change in the token format.

To resolve this issue, the library should change to tolerate a missing timestamp field.

dustinmm80 commented 6 years ago

This has been addressed with release https://github.com/cyberark/conjur-api-java/releases/tag/v2.0.0