Liking cljdoc? Tell your friends :D

csele.headers


sig-stringclj

(sig-string {method :request-method path :uri headers :headers body :body}
            targets)

Generates the signature string based on the given Ring request map and the list of headers to use. The 'special headers' (request-target), digest and host are changed as the spec demands. All other headers are used as-is. Ref: https://tools.ietf.org/html/draft-cavage-http-signatures-06

Generates the signature string based on the given Ring request map and
the list of headers to use. The 'special headers' `(request-target)`,
`digest` and `host` are changed as the spec demands. All other headers are
used as-is. Ref: https://tools.ietf.org/html/draft-cavage-http-signatures-06
sourceraw docstring

sign-requestclj

(sign-request request targets {:keys [key-id pem]})

Signature string for a Ring request map with the given private key.

Signature string for a Ring request map with the given private key.
sourceraw docstring

verifyclj

(verify {{sig-header "signature"} :headers
         {{actor :actor} :body} :parameters
         :as request}
        input-key)

Verifies the signature of a request.

Verifies the signature of a request.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close