(generate-signing-string val-map ks)
keys must include: method - post, get, etc. - used for (request-target) which is required path - path of the request
keys must include: method - post, get, etc. - used for (request-target) which is required path - path of the request
(sign-request req-method url request private-key)
(sign-request req-method url request private-key auth)
Signs http request by creating required headers and using supplied private key. req-type should be :get, :post, etc.
Signs http request by creating required headers and using supplied private key. req-type should be :get, :post, etc.
(verify-digest req)
If a message digest is present, verifies it.
If a message digest is present, verifies it.
(verify-request request)
Returns map of auth and authority from request.
Returns map of auth and authority from request.
(verify-request* req method uri host)
(verify-request* req method action db-name host)
Returns auth record from separated request parts.
Returns auth record from separated request parts.
(verify-signature-header req)
Verifies signed http request. If signature header does not exist, returns nil. If it exists and is valid, returns the authid associated with it. If it exists and is invalid, throws exception.
Verifies signed http request. If signature header does not exist, returns nil. If it exists and is valid, returns the authid associated with it. If it exists and is invalid, throws exception.
(verify-signature-header* req sig-header-str)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close