(->base64 s)(basic-auth {:keys [username password options]} request-handler)Executes the Basic Authentication strategy. Returns a map with the Base64 token if no active request is specified in options, otherwise injects the Authorization header into options and executes the request.
Executes the Basic Authentication strategy. Returns a map with the Base64 token if no active request is specified in options, otherwise injects the Authorization header into options and executes the request.
(custom-auth {:keys [handler options]} request-handler)Executes a user-defined custom authentication strategy. Invokes the provided handler function passing the options map and the http-client.
Executes a user-defined custom authentication strategy. Invokes the provided handler function passing the options map and the http-client.
Executes the specific authentication strategy based on the layer's :type.
Takes a fully resolved authentication layer map and an http-client function. Returns the direct, raw result of the authentication operation (such as immediate HTTP headers or raw network response payloads).
It does not normalize or transform response formats; varying structures and dynamic data extraction must be handled upstream using context bindings.
Executes the specific authentication strategy based on the layer's :type. Takes a fully resolved authentication layer map and an http-client function. Returns the direct, raw result of the authentication operation (such as immediate HTTP headers or raw network response payloads). It does not normalize or transform response formats; varying structures and dynamic data extraction must be handled upstream using context bindings.
(format-scopes scopes)(oauth2 {:keys [token-url grant-type client-id client-secret scopes options]}
request-handler)Executes the OAuth2 client credentials strategy. Builds a POST request using strictly URL-encoded form parameters as per RFC 6749, merging optional headers or extra form parameters from options.
Executes the OAuth2 client credentials strategy. Builds a POST request using strictly URL-encoded form parameters as per RFC 6749, merging optional headers or extra form parameters from options.
(smart-on-fhir-backend-services {:keys [scopes token-url options] :as layer}
request-handler)Executes the SMART on FHIR Backend Services authorization flow (asymmetric OAuth2 / RFC 7523).
Executes the SMART on FHIR Backend Services authorization flow (asymmetric OAuth2 / RFC 7523).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |