(auth-headers config {:keys [body headers] :or {headers {}}})
Given a config and request map of {:body ... :headers ...}, returns the original set of headers with Signature and Digest attributes appended. If Date is not in the original header set, it will also be appended.
Given a config and request map of {:body ... :headers ...}, returns the original set of headers with Signature and Digest attributes appended. If Date is not in the original header set, it will also be appended.
(authorized-fetch-actor! user-id config)
Same as fetch-actor!
but with a signature header added to the request.
You should expect the remote server to make a call to the actor identified
in config
to verify the signing key.
Same as [[fetch-actor!]] but with a signature header added to the request. You should expect the remote server to make a call to the actor identified in `config` to verify the signing key.
(authorized-resolve! str-or-obj config)
Same as resolve!
but with a signature header added to the request.
You should expect the remote server to make a call to the actor identified
in config
to verify the signing key.
Same as [[resolve!]] but with a signature header added to the request. You should expect the remote server to make a call to the actor identified in `config` to verify the signing key.
(delivery-targets! activity)
Returns the distinct inbox locations for the audience of the activity. This includes the :to, :cc, :audience, :target, :inReplyTo, :object, and :tag fields while also removing the author's own address. If the user's server supports a sharedInbox, that location is returned instead.
Returns the distinct inbox locations for the audience of the activity. This includes the :to, :cc, :audience, :target, :inReplyTo, :object, and :tag fields while also removing the author's own address. If the user's server supports a sharedInbox, that location is returned instead.
(fetch-actor! user-id)
Fetches the actor located at user-id from a remote server. If you wish to
retrieve a list of objects, see resolve!
. Will return a cached
result if it exists in memory.
Fetches the actor located at user-id from a remote server. If you wish to retrieve a list of objects, see [[resolve!]]. Will return a cached result if it exists in memory.
(gen-signature-header config headers)
Generates a HTTP Signature string based on the provided map of headers.
Generates a HTTP Signature string based on the provided map of headers.
(reset-cache!)
Removes all entries from the object cache.
Removes all entries from the object cache.
(resolve! str-or-obj)
Fetches the resource(s) located at remote-id from a remote server. Results are returned as a collection. If URL points to an ActivityPub Collection, the links will be followed until a resolved object is found. Will return cached results if they exist in memory.
Fetches the resource(s) located at remote-id from a remote server. Results are returned as a collection. If URL points to an ActivityPub Collection, the links will be followed until a resolved object is found. Will return cached results if they exist in memory.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close