Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from tlisonbee/expiration-datetime-bug-fix
Browse files Browse the repository at this point in the history
Bug fix: expiration date for credentials was not being set correctly.
  • Loading branch information
tlisonbee authored Apr 27, 2017
2 parents 7d47139 + bf58165 commit 61a4b3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# limitations under the License.
#

version=2.0.0
version=2.0.1
groupId=com.nike
artifactId=cerberus-client
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ protected void getAndSetToken(final String iamPrincipalArn, final Region region)

final String encryptedAuthData = getEncryptedAuthData(iamPrincipalArn, region);
final VaultAuthResponse decryptedToken = decryptToken(kmsClient, encryptedAuthData);
final DateTime expires = DateTime.now(DateTimeZone.UTC);
expires.plusSeconds(decryptedToken.getLeaseDuration() - paddingTimeInSeconds);
final DateTime expires = DateTime.now(DateTimeZone.UTC)
.plusSeconds(decryptedToken.getLeaseDuration() - paddingTimeInSeconds);

credentials = new TokenVaultCredentials(decryptedToken.getClientToken());
expireDateTime = expires;
Expand Down

0 comments on commit 61a4b3b

Please sign in to comment.