Error type hierarchy for classifying OAuth2/OIDC errors.
Defines a keyword hierarchy using derive so that Ring handlers can dispatch
on (:type (ex-data e)) via isa? rather than matching on exception message
strings. All domain-layer ex-info throws should include a :type key drawn
from this hierarchy.
Error type hierarchy for classifying OAuth2/OIDC errors. Defines a keyword hierarchy using `derive` so that Ring handlers can dispatch on `(:type (ex-data e))` via `isa?` rather than matching on exception message strings. All domain-layer `ex-info` throws should include a `:type` key drawn from this hierarchy.
(auth-error? type)Returns true when type is an authentication error (401-level) in the hierarchy.
Returns true when `type` is an authentication error (401-level) in the hierarchy.
Keyword hierarchy for OAuth2/OIDC error types.
::request-error covers client-side request problems (400-level).
::auth-error covers authentication/authorization failures (401-level).
Keyword hierarchy for OAuth2/OIDC error types. `::request-error` covers client-side request problems (400-level). `::auth-error` covers authentication/authorization failures (401-level).
(request-error? type)Returns true when type is a request error (400-level) in the hierarchy.
Returns true when `type` is a request error (400-level) in the hierarchy.
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 |