Manifold Signature v0.0.3 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
Builds a new signature from the provided request data
Validates the signature (t
) against the master_key
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.
t() :: %ManifoldcoSignature.Signature{ date: DateTime.t(), endorsement: endorsement(), message: message(), public_key: public_key(), signature: signature() }
Link to this section Functions
build( ManifoldcoSignature.request_method(), ManifoldcoSignature.request_path(), ManifoldcoSignature.request_query_string(), ManifoldcoSignature.request_headers(), ManifoldcoSignature.request_body() ) :: {:ok, t()} | {:error, ManifoldcoSignature.error_reason()}
Builds a new signature from the provided request data.
validate(t(), ManifoldcoSignature.master_key(), Keyword.t()) :: :ok | {:error, ManifoldcoSignature.error_reason()}
Validates the signature (t
) against the master_key
.