Liking cljdoc? Tell your friends :D

tech.io.auth

Authentication layer designed to work with hashicorp vault's aws credentialling system. Given a function that takes no arguments but can produce a credential map, we want to store the latest version of the map but also be prepared for the current credentials to time out thus necessitating a new auth request. In order to do this, providers need to throw exceptions of the type: (ex-info "Doesn't matter" {:exception-action :request-credentials} This layer will then catch such exceptions and attempt threadsafe reauthentication.

Authentication layer designed to work with hashicorp vault's aws credentialling
system.  Given a function that takes no arguments but can produce a credential map, we
want to store the latest version of the map but also be prepared for the current
credentials to time out thus necessitating a new auth request.  In order to do this,
providers need to throw exceptions of the type:
(ex-info "Doesn't matter" {:exception-action :request-credentials}
This layer will then catch such exceptions and attempt threadsafe reauthentication.
raw docstring

auth-providerclj

(auth-provider cred-fn
               {:keys [re-request-time-ms src-provider]
                :or {re-request-time-ms (* 20 60 1000)
                     src-provider (cache/forwarding-provider
                                    :url-parts->provider
                                    io-prot/url-parts->provider)}})

You need to call com.stuartsierra.component/start on this to enable the credential request system.

You need to call com.stuartsierra.component/start on this to enable the credential
request system.
sourceraw docstring

get-credentialsclj

(get-credentials re-request-ms src-cred-fn credential-atom)
source

get-vault-aws-credsclj

(get-vault-aws-creds vault-path options)
source

vault-aws-auth-providerclj

(vault-aws-auth-provider vault-path options)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close