MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithRequestSignatureValidation

Method WithRequestSignatureValidation

net/signed/service_mw.go:64–95  ·  view source on GitHub ↗

WithRequestSignatureValidation extracts from the header or trailer the hash value and hashes the body of the incoming request and compares those two hashes. On success the next handler will be called otherwise the scope based error handler.

(next http.Handler)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

configByContextMethod · 0.95
ServeHTTPMethod · 0.80
ValidateBodyMethod · 0.80
ContextMethod · 0.45
DebugMethod · 0.45
ErrMethod · 0.45

Tested by

no test coverage detected