Liking cljdoc? Tell your friends :D

ehr-adapter.auth.strategy


->base64clj

(->base64 s)

basic-authclj

(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.
raw docstring

custom-authclj

(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.
raw docstring

executecljmultimethod

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.
raw docstring

format-scopesclj

(format-scopes scopes)

oauth2clj

(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.
raw docstring

smart-on-fhir-backend-servicesclj

(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).
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close