mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Use provisioner name in error message (#1524)
This commit is contained in:
parent
09ccb22c4b
commit
b7c4ed26fb
@ -177,7 +177,7 @@ func (a *Authority) AuthorizeAdminToken(r *http.Request, token string) (*linkedc
|
||||
if !adminFound {
|
||||
return nil, admin.NewError(admin.ErrorUnauthorizedType,
|
||||
"adminHandler.authorizeToken; unable to load admin with subject(s) %s and provisioner '%s'",
|
||||
adminSANs, claims.Issuer)
|
||||
adminSANs, prov.GetName())
|
||||
}
|
||||
|
||||
if strings.HasPrefix(r.URL.Path, "/admin/admins") && (r.Method != "GET") && adm.Type != linkedca.Admin_SUPER_ADMIN {
|
||||
|
Loading…
Reference in New Issue
Block a user