Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] improvement(authn): Add the command example for simple mode (#9587)

roryqi15379bfebef3
diff --git a/docs/security/how-to-authenticate.md b/docs/security/how-to-authenticate.md
index fdbee267a0..8834c330f7 100644
--- a/docs/security/how-to-authenticate.md
+++ b/docs/security/how-to-authenticate.md
@@ -33,6 +33,16 @@ GravitinoClient client = GravitinoClient.builder(uri)
.build();
```
+When using curl or other HTTP clients, authenticate with the `Authorization` header:
+
+```shell
+curl -v -X GET \
+ -H "Accept: application/vnd.gravitino.v1+json" \
+ -H "Content-Type: application/json" \
+ -H "Authorization: Basic $(echo -n 'admin:' | base64)" \
+ http://localhost:8090/api/version
+```
+
### OAuth mode
Gravitino supports external OAuth 2.0 servers with two token validation methods: