Herman Slatman před 2 roky
rodič
revize
6a98fea1f3

+ 1 - 1
authority/provisioner/dpop_options.go

@@ -48,7 +48,7 @@ func (o *DPOPOptions) GetTarget(deviceID string) (string, error) {
 		return "", fmt.Errorf("failed parsing dpop template: %w", err)
 	}
 	buf := new(bytes.Buffer)
-	if err = tmpl.Execute(buf, struct{ DeviceId string }{DeviceId: deviceID}); err != nil {
+	if err = tmpl.Execute(buf, struct{ DeviceId string }{DeviceId: deviceID}); err != nil { //nolint:revive,stylecheck // TODO(hs): this requires changes in configuration
 		return "", fmt.Errorf("failed executing dpop template: %w", err)
 	}
 	return buf.String(), nil

+ 1 - 1
authority/provisioner/oidc_options.go

@@ -61,7 +61,7 @@ func (o *OIDCOptions) GetTarget(deviceID string) (string, error) {
 		return "", fmt.Errorf("failed parsing oidc template: %w", err)
 	}
 	buf := new(bytes.Buffer)
-	if err = tmpl.Execute(buf, struct{ DeviceId string }{DeviceId: deviceID}); err != nil {
+	if err = tmpl.Execute(buf, struct{ DeviceId string }{DeviceId: deviceID}); err != nil { //nolint:revive,stylecheck // TODO(hs): this requires changes in configuration
 		return "", fmt.Errorf("failed executing oidc template: %w", err)
 	}
 	return buf.String(), nil