Fix DC/OS login expiration time (#3625)

(cherry picked from commit 005face7c0)
This commit is contained in:
Daniel Nelson 2017-12-28 16:17:40 -08:00 committed by Daniel Nelson
parent 6852231c1b
commit 55f35f291d
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 1 deletions

View File

@ -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)