pan3793 commented on code in PR #6734:
URL: https://github.com/apache/kyuubi/pull/6734#discussion_r1802318801


##########
docs/client/rest/rest_api.md:
##########
@@ -19,6 +19,16 @@
 
 Note that: now the api version is v1 and the base uri is `/api/v1`.
 
+## Authentication
+
+REST API supports the [Basic 
Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization#basic_authentication)
 which relies on `Authorization` header in HTTP request.
+
+```
+Authorization: Basic <credentials>
+```
+
+The `<credentials>` value is the Base64 encoded string of `username:password`. 
For example,in the case of a user `aladdin` with the password `opensesame`, set 
the `Authorization` header to `Basic YWxhZGRpbjpvcGVuc2VzYW1l` as Base64 
encoded `aladdin:opensesame`.

Review Comment:
   ```suggestion
   The `<credentials>` value is the Base64 encoded string of 
`username:password`. For example, in the case of a user `aladdin` with the 
password `opensesame`, set the `Authorization` header to `Basic 
YWxhZGRpbjpvcGVuc2VzYW1l` as Base64 encoded `aladdin:opensesame`.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org
For additional commands, e-mail: notifications-h...@kyuubi.apache.org

Reply via email to