Skip to content

Commit

Permalink
Fix DC/OS login expiration time (#3625)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Dec 29, 2017
1 parent 1011cd0 commit 005face
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/dcos/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (c *ClusterClient) createLoginToken(sa *ServiceAccount) (string, error) {
UID: sa.AccountID,
StandardClaims: jwt.StandardClaims{
// How long we have to login with this token
ExpiresAt: int64(5 * time.Minute / time.Second),
ExpiresAt: time.Now().Add(5 * time.Minute).Unix(),
},
})
return token.SignedString(sa.PrivateKey)
Expand Down

0 comments on commit 005face

Please sign in to comment.