Namespace that holds authentication/authorization related functions.
Namespace that holds authentication/authorization related functions.
(authenticate r identity)
Authenticates the given request/response.
Authenticates the given request/response.
(authenticated? request)
Checks if the given request is authenticated.
Checks if the given request is authenticated.
(authorized? request required-roles)
Checks if an authenticated request has required roles.
Checks if an authenticated request has required roles.
(get-identity request)
Returns the identity associated with the given request.
Returns the identity associated with the given request.
(logout response)
Cleans up the given response of identity information.
Cleans up the given response of identity information.
(throw-forbidden info)
Throws the access forbbidden exception with [info] content. Default error type :unauthenticated.
Throws the access forbbidden exception with [info] content. Default error type :unauthenticated.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close