Who may reach a route, and what a refused caller is told.
Every route requires a signed-in user unless its route data carries
:public true (BOU-568). A refusal has the shape the user module's
require-authenticated interceptor answers with, so a client sees one 401
whichever layer refused it: the one error body of
wagoe.platform.core.http.errors (BOU-586). No Content-Type: muuntaja encodes a map body
only when none is set (ZZP-120). What needs no HTTP stack lives in
wagoe.core.http.access (BOU-930).
Who may reach a route, and what a refused caller is told. Every route requires a signed-in user unless its route data carries `:public true` (BOU-568). A refusal has the shape the user module's `require-authenticated` interceptor answers with, so a client sees one 401 whichever layer refused it: the one error body of `wagoe.platform.core.http.errors` (BOU-586). No Content-Type: muuntaja encodes a map body only when none is set (ZZP-120). What needs no HTTP stack lives in `wagoe.core.http.access` (BOU-930).
(admin? request)See wagoe.core.http.access/admin?.
See `wagoe.core.http.access/admin?`.
(correlation-id request fresh)See wagoe.core.http.access/correlation-id.
See `wagoe.core.http.access/correlation-id`.
(error-page-html status message correlation-id)A bare error page, for an app that renders none of its own.
A bare error page, for an app that renders none of its own.
(escape-html s)s safe in HTML text or an attribute.
`s` safe in HTML text or an attribute.
(forbidden-response message request correlation-id)See wagoe.core.http.access/forbidden-response.
See `wagoe.core.http.access/forbidden-response`.
(in-tenant-scope? request)See wagoe.core.http.access/in-tenant-scope?.
See `wagoe.core.http.access/in-tenant-scope?`.
(platform-admin? user)See wagoe.core.http.access/platform-admin?.
See `wagoe.core.http.access/platform-admin?`.
(public? data)Whether Reitit endpoint data opts out of authentication.
Whether Reitit endpoint data opts out of authentication.
(refusal-response status error message correlation-id)See wagoe.core.http.access/refusal-response.
See `wagoe.core.http.access/refusal-response`.
(same-id? a b)See wagoe.core.http.access/same-id?.
See `wagoe.core.http.access/same-id?`.
(tenant-admin? request)See wagoe.core.http.access/tenant-admin?.
See `wagoe.core.http.access/tenant-admin?`.
(unauthorized-response message request correlation-id)401 for an API caller; a web page sends the browser to the login form, which returns it here afterwards.
401 for an API caller; a web page sends the browser to the login form, which returns it here afterwards.
(web-request? request)Whether request is for a page under /web.
Whether `request` is for a page under /web.
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 |