mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-05 01:29:32 +01:00
docs(api): the hook-path 401 carries no Basic challenge
This commit is contained in:
1 parent
aabd71ee98
commit
d620b7b194
1 file changed
+2
-2
@@ -61,8 +61,8 @@ payload return `{ "success": true, "data": {} }`.
|
||||
|
||||
⚠️ **A `401` is not an envelope.** Authentication is rejected
|
||||
in a request hook, before any handler runs, and it replies with the bare string
|
||||
`Unauthorized` (`Unauthorized: hook secret required` on the hook path) plus
|
||||
`WWW-Authenticate: Basic realm="Codeman"`. With trusted-proxy sign-in on (experimental,
|
||||
`Unauthorized` plus `WWW-Authenticate: Basic realm="Codeman"` (on the hook path it is
|
||||
`Unauthorized: hook secret required`, without that header). With trusted-proxy sign-in on (experimental,
|
||||
see [Authentication](#authentication)) the same hook has more plain-text replies: a `401`
|
||||
without `WWW-Authenticate`, a `403` and a `503` for a refused proxy identity, and a `403`
|
||||
or `404` for a `/webview/` or `/html-view/` path without a live capability. There is no `success`, no `error`, and no
|
||||
|
||||
Reference in new issue
Block a user