(check-access-token-request
{:keys [request-method]
{:strs [grant_type scope client_id client_assertion_type]} :form-params})(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]})(mk-jti-cache-atom)Create an empty jti cache atom.
Create an empty jti cache atom.
(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.
(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`.
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 |