MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / newMalformedSignatureError

Function newMalformedSignatureError

security/errors.go:28–39  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

26}
27
28func newMalformedSignatureError(ctx context.Context) error {
29 msg := "The signature appears to be a processing option. The signature section should always be present in the URL."
30
31 return SignatureError{errctx.NewTextError(
32 msg,
33 1,
34 errctx.WithStatusCode(http.StatusForbidden),
35 errctx.WithPublicMessage(msg),
36 errctx.WithShouldReport(false),
37 errctx.WithDocsURL(errctx.DocsBaseURL(ctx, "https://docs.imgproxy.net/usage/processing")),
38 )}
39}
40
41func newImageResolutionError(msg string) error {
42 return ImageResolutionError{errctx.NewTextError(

Callers 1

VerifySignatureMethod · 0.85

Calls 6

NewTextErrorFunction · 0.92
WithStatusCodeFunction · 0.92
WithPublicMessageFunction · 0.92
WithShouldReportFunction · 0.92
WithDocsURLFunction · 0.92
DocsBaseURLFunction · 0.92

Tested by

no test coverage detected