Skip to content

Commit

Permalink
Merge pull request #287 from sshanks-kx/httpauth
Browse files Browse the repository at this point in the history
fix dot z ref (auth/dependencies section corrupt in prev update)
  • Loading branch information
natalietanner authored Jun 13, 2024
2 parents eae46a2 + 7ebcad0 commit 6bf5f05
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/ref/dotz.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ The relevant HTTP callback to handle this request will be allowed.
* User not authorized/authenticated (custom response)
```q
(2;"response text")
```
The custom response to be sent should be provided in the "response text" section.
The response text should be comprised of a valid HTTP response message, for example a 401 response with a customised message.
An HTTP callback to handle the original request is not called.
* Fallback to basic authentication
```q
(4;"")
```
Fallback to [basic access authentication](https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side), where the username/password are base64 decoded and processed via the [`-u`](../ba
sics/cmdline.md#-u-usr-pwd-local)/[`-U`](../basics/cmdline.md#-u-usr-pwd) file and [`.z.pw`](#zpw-validate-user) (if defined).
If the user is not permitted, the client is sent a default 401 HTTP unauthorized response. Since V4.0 2021.07.12.

!!! note "If .z.ac is not defined, it uses basic access authentication as per `(4;"")` above"

Expand Down

0 comments on commit 6bf5f05

Please sign in to comment.