Liking cljdoc? Tell your friends :D

wagoe.platform.core.http.access

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

admin?clj

(admin? request)

See wagoe.core.http.access/admin?.

See `wagoe.core.http.access/admin?`.
sourceraw docstring

correlation-idclj

(correlation-id request fresh)

See wagoe.core.http.access/correlation-id.

See `wagoe.core.http.access/correlation-id`.
sourceraw docstring

error-page-htmlclj

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

escape-htmlclj

(escape-html s)

s safe in HTML text or an attribute.

`s` safe in HTML text or an attribute.
sourceraw docstring

forbidden-responseclj

(forbidden-response message request correlation-id)

See wagoe.core.http.access/forbidden-response.

See `wagoe.core.http.access/forbidden-response`.
sourceraw docstring

in-tenant-scope?clj

(in-tenant-scope? request)

See wagoe.core.http.access/in-tenant-scope?.

See `wagoe.core.http.access/in-tenant-scope?`.
sourceraw docstring

platform-admin?clj

(platform-admin? user)

See wagoe.core.http.access/platform-admin?.

See `wagoe.core.http.access/platform-admin?`.
sourceraw docstring

public?clj

(public? data)

Whether Reitit endpoint data opts out of authentication.

Whether Reitit endpoint data opts out of authentication.
sourceraw docstring

refusal-responseclj

(refusal-response status error message correlation-id)

See wagoe.core.http.access/refusal-response.

See `wagoe.core.http.access/refusal-response`.
sourceraw docstring

same-id?clj

(same-id? a b)

See wagoe.core.http.access/same-id?.

See `wagoe.core.http.access/same-id?`.
sourceraw docstring

tenant-admin?clj

(tenant-admin? request)

See wagoe.core.http.access/tenant-admin?.

See `wagoe.core.http.access/tenant-admin?`.
sourceraw docstring

unauthorized-responseclj

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

web-request?clj

(web-request? request)

Whether request is for a page under /web.

Whether `request` is for a page under /web.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close