Przeglądaj źródła

Use provisioner name in error message (#1524)

Max 3 lat temu
rodzic
commit
b7c4ed26fb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      authority/authorize.go

+ 1 - 1
authority/authorize.go

@@ -177,7 +177,7 @@ func (a *Authority) AuthorizeAdminToken(r *http.Request, token string) (*linkedc
 	if !adminFound {
 	if !adminFound {
 		return nil, admin.NewError(admin.ErrorUnauthorizedType,
 		return nil, admin.NewError(admin.ErrorUnauthorizedType,
 			"adminHandler.authorizeToken; unable to load admin with subject(s) %s and provisioner '%s'",
 			"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 {
 	if strings.HasPrefix(r.URL.Path, "/admin/admins") && (r.Method != "GET") && adm.Type != linkedca.Admin_SUPER_ADMIN {