(authenticate-request request backends)A function that runs the authentication backend chain for the provided request and return the identity of the first matched backend (backend that properly authenticates the provided request).
NOTE: this function is for internal use, it is public because it is helpfull in enviroments different to ring.
A function that runs the authentication backend chain for the provided request and return the identity of the first matched backend (backend that properly authenticates the provided request). NOTE: this function is for internal use, it is public because it is helpfull in enviroments different to ring.
(authentication-request request & backends)Updates request with authentication. If multiple backends are
given each of them gets a chance to authenticate the request.
NOTE: this function is for internal use, it is public because it is helpfull in enviroments different to ring.
Updates request with authentication. If multiple `backends` are given each of them gets a chance to authenticate the request. NOTE: this function is for internal use, it is public because it is helpfull in enviroments different to ring.
(authorization-error request e backend)Handles authorization errors.
The backend parameter should be a plain function
that accepts two parameters: request and errordata hashmap,
or an instance that satisfies IAuthorization protocol.
Handles authorization errors. The `backend` parameter should be a plain function that accepts two parameters: request and errordata hashmap, or an instance that satisfies IAuthorization protocol.
(wrap-authentication handler & backends)Ring middleware that enables authentication for your ring
handler. When multiple backends are given each of them gets a
chance to authenticate the request.
Ring middleware that enables authentication for your ring handler. When multiple `backends` are given each of them gets a chance to authenticate the request.
(wrap-authorization handler backend)Ring middleware that enables authorization workflow for your ring handler.
The backend parameter should be a plain function
that accepts two parameters: request and errordata
hashmap, or an instance that satisfies IAuthorization
protocol.
Ring middleware that enables authorization workflow for your ring handler. The `backend` parameter should be a plain function that accepts two parameters: request and errordata hashmap, or an instance that satisfies IAuthorization protocol.
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 |