From b7c4ed26fbec4ad4fe7cc31f0e17c53974fd874b Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 7 Sep 2023 15:06:46 -0700 Subject: [PATCH] Use provisioner name in error message (#1524) --- authority/authorize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authority/authorize.go b/authority/authorize.go index 31855d5b..1e35afe0 100644 --- a/authority/authorize.go +++ b/authority/authorize.go @@ -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 {