Manifold Signature v1.0.0 ManifoldcoSignature.Signature View Source
Verifies a request signature for the Manifold.co service callbacks.
https://docs.manifold.co/providers#section/Authentication
Link to this section Summary
Types
Endorsement provided as the 3 argument in the x-signature
header
The canonized request message to verify
Public key provided as the second argument in the x-signature
header
Request signature provied as the first argument in the x-signature
header
Functions
Validates the request via the x-signature header
Link to this section Types
Endorsement provided as the 3 argument in the x-signature
header.
The canonized request message to verify.
Public key provided as the second argument in the x-signature
header.
Request signature provied as the first argument in the x-signature
header.
Link to this type
t()
View Source
t() :: %ManifoldcoSignature.Signature{ date: DateTime.t(), endorsement: endorsement(), message: message(), public_key: public_key(), signature: signature() }
Link to this section Functions
Link to this function
validate(method, path, query_string, headers, body, master_key, opts \\ [])
View Source
validate( ManifoldcoSignature.request_method(), ManifoldcoSignature.request_path(), ManifoldcoSignature.request_query_string(), ManifoldcoSignature.request_headers(), ManifoldcoSignature.request_body(), ManifoldcoSignature.master_key(), Keyword.t() ) :: :ok | {:error, ManifoldcoSignature.error_reason()}
Validates the request via the x-signature header.