(handle-validate-token {:keys [:client] :as op})
If token is valid execute HTTP request, otherwise execute HTTP request on /login endpoint.
If token is valid execute HTTP request, otherwise execute HTTP request on /login endpoint.
(request client-atom req resp-chan)
Invoke salt.api/request
request and returns channel which deliver the response.
This function logs in user if not already logged in and handles unauthorized exception. Channel will deliver:
Channel is closed after response is delivered.
Request will be merged with client default-http-request. See salt.client/client
for more details.
Invoke [[salt.api/request]] request and returns channel which deliver the response. This function logs in user if not already logged in and handles unauthorized exception. Channel will deliver: - Parsed salt-api response body - Exception if error occurs Channel is closed after response is delivered. Request will be merged with client default-http-request. See [[salt.client/client]] for more details.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close