Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReqHasValidSignature ¶
func ReqHasValidSignature(ctx context.Context, req *http.Request, reqAuthorPubKeyPem string, strictMode bool) (bool, error)
ReqHasValidSignature validates the signature of POST requests by default reqAuthorPubKeyPem can optionally be specified to be the public key (RSA-SHA256 PEM format) of the actor sending the request, if it is empty, the key is fetched using http.Get strictMode=true additionally validates GET request signature as well as that the request Date is within the last 12 hours
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.