This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-1.0
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-1.0 by this push:
new 4c9d303603 [#8535] Fix: Updated "how-to-authenticate.md" and added a
separate command for IRC service. (#8540)
4c9d303603 is described below
commit 4c9d303603df5db50d0cadf5315b402a803f01dc
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Sep 12 16:29:13 2025 +0800
[#8535] Fix: Updated "how-to-authenticate.md" and added a separate command
for IRC service. (#8540)
### What changes were proposed in this pull request?
Updated the documentation to clarify that the "Accept:
application/vnd.gravitino.v1+json" header applies only to the REST
service.
For the IRC service, this header should be omitted to avoid errors.
Added separate curl commands for REST and IRC services.
### Why are the changes needed?
Yes, The previous documentation used the same commands for both REST and
IRC services.
The IRC service does not accept the Accept:
application/vnd.gravitino.v1+json header and hence this header should be
removed.
Fix: #8535
### Does this PR introduce _any_ user-facing change?
Yes, documentation shows two separate commands one for REST and one for
IRC.
### How was this patch tested?
Since documentation was updated, a live preview of this file was checked
locally using a Markdown viewer.
Co-authored-by: Ashwil-Colaco <[email protected]>
---
docs/security/how-to-authenticate.md | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/docs/security/how-to-authenticate.md
b/docs/security/how-to-authenticate.md
index 157916a26e..fdbee267a0 100644
--- a/docs/security/how-to-authenticate.md
+++ b/docs/security/how-to-authenticate.md
@@ -362,8 +362,14 @@ curl \
"http://localhost:8080/realms/gravitinorealm/protocol/openid-connect/token"
```
-Use the access token to make requests to the Gravitino server
+Use the access token to make requests to the Gravitino server:
```shell
curl -v -X GET -H "Accept: application/vnd.gravitino.v1+json" -H
"Content-Type: application/json" -H "Authorization: Bearer <access_token>"
http://localhost:8090/api/version
-```
\ No newline at end of file
+```
+
+For Gravitino Iceberg REST Service, the 'Accept:
application/vnd.gravitino.v1+json' header is not required, you could use
following command:
+
+```shell
+curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer
<access_token>" http://127.0.0.1:9001/iceberg/v1/config
+```