Builder functions for iSHARE client requests.
These functions take a request map and some number of arguments and return an updated request map, cumulating in a ring-style HTTP request map.
See org.bdinetwork.ishare.client
for a description of request keys
specific to the client.
Builder functions for iSHARE client requests. These functions take a request map and some number of arguments and return an updated request map, cumulating in a ring-style HTTP request map. See `org.bdinetwork.ishare.client` for a description of request keys specific to the client.
(access-token-request request)
(access-token-request {:ishare/keys [client-id base-url server-id] :as request}
path)
Build a request for an access token.
Takes a base request
that should include client info. Builds a
client assertion for client-id
to authenticate to server-id
.
The request :ishare/operation
is :access-token
.
Build a request for an access token. Takes a base `request` that should include client info. Builds a client assertion for `client-id` to authenticate to `server-id`. The request `:ishare/operation` is `:access-token`.
(capabilities-request request)
Build a request for the capabilities of the server.
Takes a base request
.
Build a request for the capabilities of the server. Takes a base `request`.
(delegation-evidence-request request
{{:keys [policyIssuer]} :delegationRequest
:as delegation-mask})
Build a delegation evidence request.
Sets :ishare/policy-issuer
key from the given delegation-mask
,
for use by ishare-issuer-ar-interceptor
-- which can locate the
correct Authorization Register for that issuer and
:ishare/dataspace-id
.
Build a delegation evidence request. Sets `:ishare/policy-issuer` key from the given `delegation-mask`, for use by `ishare-issuer-ar-interceptor` -- which can locate the correct Authorization Register for that issuer and `:ishare/dataspace-id`.
(parties-request request params)
Build a satellite-request
for parties info.
Takes a base request
and passes params
as query params.
Build a `satellite-request` for parties info. Takes a base `request` and passes `params` as query params.
(party-request request party-id)
Build a satellite-request
for party info for a single party.
Takes a base request
and party-id
of the party info to be
returned.
Build a `satellite-request` for party info for a single party. Takes a base `request` and `party-id` of the party info to be returned.
(satellite-request {:ishare/keys [satellite-base-url satellite-id] :as request})
Build a request to access the iSHARE satellite.
Takes a base request
and uses :ishare/satellite-base-url
and
:ishare/satellite-id
to set the :ishare/base-url
and
:ishare/server-id
.
Build a request to access the iSHARE satellite. Takes a base `request` and uses `:ishare/satellite-base-url` and `:ishare/satellite-id` to set the `:ishare/base-url` and `:ishare/server-id`.
(trusted-list-request request)
Build a satellite-request
for the trusted list of CAs.
Takes a base request
Build a `satellite-request` for the trusted list of CAs. Takes a base `request`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close