Fix DC/OS login expiration time (#3625)
This commit is contained in:
parent
0f6aadf253
commit
262bd1f326
|
@ -325,7 +325,7 @@ func (c *ClusterClient) createLoginToken(sa *ServiceAccount) (string, error) {
|
||||||
UID: sa.AccountID,
|
UID: sa.AccountID,
|
||||||
StandardClaims: jwt.StandardClaims{
|
StandardClaims: jwt.StandardClaims{
|
||||||
// How long we have to login with this token
|
// 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)
|
return token.SignedString(sa.PrivateKey)
|
||||||
|
|
Loading…
Reference in New Issue