(access-token-request request)
(access-token-request {:ishare/keys [client-id base-url server-id] :as request}
path)
Create 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
.
Create 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)
Create a request for the capabilities of the server.
Takes a base request
.
Create a request for the capabilities of the server. Takes a base `request`.
(delegation-evidence-request request
{{:keys [policyIssuer]} :delegationRequest
:as delegation-mask})
Create 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
.
Create 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`.
(exec request)
(fetch-party-info {:ishare/keys [fetch-party-info-fn]
:as request
:or {fetch-party-info-fn fetch-party-info-default}}
party-id)
Request party info from satellite with optional cache.
Takes :ishare/fetch-party-info-fn
from request
to execute request. The
default value for this function is fetch-party-info-default
, which
caches its result for one hour.
Request party info from satellite with optional cache. Takes `:ishare/fetch-party-info-fn` from `request` to execute request. The default value for this function is `fetch-party-info-default`, which caches its result for one hour.
(fetch-party-info* client-info party-id)
Fetch party info from satellite.
Usually you'll want to use fetch-party-info
instead.
Fetch party info from satellite. Usually you'll want to use `fetch-party-info` instead.
(fetch-party-info-default request party-id)
Cached version of fetch-party-info*
with a one hour cache of results.
Cached version of `fetch-party-info*` with a one hour cache of results.
This method will be removed in a future version of the library.
Use named *-request functions instead. See also party-request
,
access-token-request
.
This method will be removed in a future version of the library. Use named *-request functions instead. See also `party-request`, `access-token-request`.
(json-response? response)
(mk-cached-fetch-party-info ttl-ms)
Create a cached version of fetch-party-info*
Create a cached version of `fetch-party-info*`
(parse-instant s)
(parties-request request params)
Create a satellite-request
for parties info.
Takes a base request
and passes params
as query params.
Create a `satellite-request` for parties info. Takes a base `request` and passes `params` as query params.
(party-adherence-issue {{:keys [status start_date end_date]} :adherence
:keys [party_id]
:as party-info})
If party info is not currently adherent, returns an issue map of :issue message and :info data.
If party info is not currently adherent, returns an issue map of :issue message and :info data.
(party-request request party-id)
Create a satellite-request
for party info for a single party.
Takes a base request
and party-id
of the party info to be
returned.
Create a `satellite-request` for party info for a single party. Takes a base `request` and `party-id` of the party info to be returned.
(private-key key-file)
Read private key from file.
Read private key from file.
(redact-body body)
Remove sensitive params from request body (for logging)
Remove sensitive params from request body (for logging)
(redact-path r p)
(redact-request request)
(resolve-uri base-url path)
(satellite-request {:ishare/keys [satellite-base-url satellite-id] :as request})
Response: throw on exceptional status codes. Strips out client info and private information
Response: throw on exceptional status codes. Strips out client info and private information
(trusted-list-request request)
Create a satellite-request
for the trusted list of CAs.
Takes a base request
Create a `satellite-request` for the trusted list of CAs. Takes a base `request`
(x5c cert-file)
Read chain file into vector of certificates.
Read chain file into vector of certificates.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close