forked from TrueCloudLab/certificates
bump cli dep and fix text error msg
This commit is contained in:
parent
ff20d9f5af
commit
9977eff153
2 changed files with 2 additions and 2 deletions
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -298,7 +298,7 @@
|
||||||
"utils",
|
"utils",
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "f851b6b63d8d5e78b8a986057034d69fe904c477"
|
revision = "1bfe8f76786f97b272ceb573c87945b696fefb78"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
|
@ -50,7 +50,7 @@ func (a *Authority) authorizeToken(ott string) (provisioner.Interface, error) {
|
||||||
// This check is meant as a stopgap solution to the current lack of a persistence layer.
|
// This check is meant as a stopgap solution to the current lack of a persistence layer.
|
||||||
if a.config.AuthorityConfig != nil && !a.config.AuthorityConfig.DisableIssuedAtCheck {
|
if a.config.AuthorityConfig != nil && !a.config.AuthorityConfig.DisableIssuedAtCheck {
|
||||||
if claims.IssuedAt != nil && claims.IssuedAt.Time().Before(a.startTime) {
|
if claims.IssuedAt != nil && claims.IssuedAt.Time().Before(a.startTime) {
|
||||||
return nil, &apiError{errors.New("authorize: token issued before the bootstrap of certificate authority"),
|
return nil, &apiError{errors.New("authorizeToken: token issued before the bootstrap of certificate authority"),
|
||||||
http.StatusUnauthorized, errContext}
|
http.StatusUnauthorized, errContext}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue