You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ref/dotz.md
+11
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,17 @@ The relevant HTTP callback to handle this request will be allowed.
110
110
* User not authorized/authenticated (custom response)
111
111
```q
112
112
(2;"response text")
113
+
```
114
+
The custom response to be sent should be provided in the "response text" section.
115
+
The response text should be comprised of a valid HTTP response message, for example a 401 response with a customised message.
116
+
An HTTP callback to handle the original request is not called.
117
+
* Fallback to basic authentication
118
+
```q
119
+
(4;"")
120
+
```
121
+
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
122
+
sics/cmdline.md#-u-usr-pwd-local)/[`-U`](../basics/cmdline.md#-u-usr-pwd) file and [`.z.pw`](#zpw-validate-user) (if defined).
123
+
If the user is not permitted, the client is sent a default 401 HTTP unauthorized response. Since V4.0 2021.07.12.
113
124
114
125
!!! note "If .z.ac is not defined, it uses basic access authentication as per `(4;"")` above"
0 commit comments