Skip to content

Commit b7c4ed2

Browse files
authored
Use provisioner name in error message (#1524)
1 parent 09ccb22 commit b7c4ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authority/authorize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (a *Authority) AuthorizeAdminToken(r *http.Request, token string) (*linkedc
177177
if !adminFound {
178178
return nil, admin.NewError(admin.ErrorUnauthorizedType,
179179
"adminHandler.authorizeToken; unable to load admin with subject(s) %s and provisioner '%s'",
180-
adminSANs, claims.Issuer)
180+
adminSANs, prov.GetName())
181181
}
182182

183183
if strings.HasPrefix(r.URL.Path, "/admin/admins") && (r.Method != "GET") && adm.Type != linkedca.Admin_SUPER_ADMIN {

0 commit comments

Comments
 (0)