Manifold Signature v0.0.3 ManifoldcoSignature View Source
Verifies incoming provider callback requests from the Manifold.co service.
https://docs.manifold.co/providers#section/Authentication
Link to this section Summary
Types
User friendly error reason
Master key provided by Manifold. This should be securely stored in your environment and
passed to validate/6
as the last argument
The raw request body
Tuple form of the request headers, the default structure provided from Plug.Conn.headers
String representation of the method, case insensitive. This library will normalize the case as described in the Manifold docs
The raw request path with a leading /
String representation of the URL query string (without the ?). This library will normalize the order of the parameters as described in the Manifold documentation
Functions
Verifies the request. Each request part is required to build the canoncical form of the
request and the master_key
should be securetly stored in your environment and passed
as the last argument. The master_key
is provided by Manifold
Link to this section Types
User friendly error reason.
Master key provided by Manifold. This should be securely stored in your environment and
passed to validate/6
as the last argument.
The raw request body.
request_headers() :: [{request_header_key(), request_header_value()}]
Tuple form of the request headers, the default structure provided from Plug.Conn.headers
.
String representation of the method, case insensitive. This library will normalize the case as described in the Manifold docs.
The raw request path with a leading /.
String representation of the URL query string (without the ?). This library will normalize the order of the parameters as described in the Manifold documentation.
Link to this section Functions
verify( request_method(), request_path(), request_query_string(), request_headers(), request_body(), master_key() ) :: :ok | {:error, error_reason()}
Verifies the request. Each request part is required to build the canoncical form of the
request and the master_key
should be securetly stored in your environment and passed
as the last argument. The master_key
is provided by Manifold.