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
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,18 @@ 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 reponse to be sent should be provided in the "response text" section.
115
+
The "response text" should be comprised of a valid HTTP response message e.g. can be used to provide a
116
+
401 response with a customised message.
117
+
An HTTP callback to handle the original request will not be called.
118
+
* Fallback to basic authentication
119
+
```q
120
+
(4;"")
121
+
```
122
+
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
123
+
sics/cmdline.md#-u-usr-pwd-local)/[`-U`](../basics/cmdline.md#-u-usr-pwd) file and [`.z.pw`](#zpw-validate-user) (if defined).
124
+
If the user is not permitted, the client will be sent a default 401 HTTP unauthorized response. Since V4.0 2021.07.12.
113
125
114
126
!!! note "If .z.ac is not defined, it uses basic access authentication as per `(4;"")` above"
0 commit comments