Liking cljdoc? Tell your friends :D

org.bdinetwork.ring.authentication


bad-requestclj

(bad-request msg info)
source

check-access-token-requestclj

(check-access-token-request
  {:keys [request-method]
   {:strs [grant_type scope client_id client_assertion_type]} :form-params})
source

client-assertion-responseclj

(client-assertion-response {:keys [association]
                            {:strs [client_id client_assertion]} :form-params
                            :as request}
                           {:keys [private-key server-id jti-cache-atom
                                   access-token-ttl-seconds]})
source

jti-cache-ttl-secondsclj

source

mk-jti-cache-atomclj

(mk-jti-cache-atom)

Create an empty jti cache atom.

Create an empty jti cache atom.
sourceraw docstring

new-jti?!clj

(new-jti?! jti-cache-atom jti)

Returns true if jti wasn't in cache. Updates cache if jti is new.

Returns `true` if jti wasn't in cache. Updates cache if jti is new.
sourceraw docstring

wrap-authenticationclj

(wrap-authentication f {:keys [private-key server-id] :as opts})

Middleware to add a /connect/token endpoint.

It requires both ring.middleware.json/wrap-json-response and ring.middleware.params/wrap-params to function and expects an association on the request which implements org.bdinetwork.ring.association/Association.

Middleware to add a `/connect/token` endpoint.

 It requires both `ring.middleware.json/wrap-json-response` and
`ring.middleware.params/wrap-params` to function and expects an
`association` on the request which implements
`org.bdinetwork.ring.association/Association`.
sourceraw docstring

wrap-client-assertionclj

(wrap-client-assertion f opts)
source

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

× close