Liking cljdoc? Tell your friends :D

buddy.auth.middleware


authenticate-requestclj

(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 helpful in environments 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 helpful in environments different to ring.
raw docstring

authentication-requestclj

(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 helpful in environments 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 helpful in environments different to ring.
raw docstring

authorization-errorclj

(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.
raw docstring

wrap-authenticationclj

(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.
raw docstring

wrap-authorizationclj

(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.
raw docstring

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

× close