(get-identity req)Extract the authenticated identity from the request.
Extract the authenticated identity from the request.
(wrap-authenticate handler strategies)Ring middleware that tries each strategy in order.
Each strategy's :authenticate fn returns:
{:authenticated data} — success, assoc identity into request (falsy data is treated as a skip){:error error} — auth attempted but failednil — not applicable, try next strategy
Optional :unauthorized (fn [req error]) handles rejection.
Only called when the strategy returned an error.Ring middleware that tries each strategy in order.
Each strategy's `:authenticate` fn returns:
- `{:authenticated data}` — success, assoc identity into request (falsy `data` is treated as a skip)
- `{:error error}` — auth attempted but failed
- `nil` — not applicable, try next strategy
Optional `:unauthorized` `(fn [req error])` handles rejection.
Only called when the strategy returned an error.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 |