diqiu50 commented on code in PR #10052: URL: https://github.com/apache/gravitino/pull/10052#discussion_r2998590921
########## docs/trino-connector/authentication.md: ########## @@ -0,0 +1,136 @@ +--- +title: "Apache Gravitino Trino connector Authentication" +slug: /trino-connector/authentication +keyword: gravitino connector trino authentication +license: "This software is licensed under the Apache License version 2." +--- + +## Authentication + +The Gravitino Trino connector supports authenticating to the Gravitino server using the same authentication mechanisms as the Gravitino Java client: Simple, OAuth, and Kerberos. Authentication is configured through the Trino connector properties file using the `gravitino.client.*` prefix. + +If `gravitino.client.authType` is not set, the connector operates in no-authentication mode and connects to the Gravitino server without any credentials. + +### Simple Authentication + +Simple authentication uses a username to authenticate with the Gravitino server. + +**Configuration in `etc/catalog/gravitino.properties`:** + +```properties +connector.name=gravitino +gravitino.metalake=metalake +gravitino.uri=http://localhost:8090 + +# Simple authentication with username +gravitino.client.authType=simple +gravitino.client.simpleAuthUser=admin Review Comment: Replace it with `gravitino.user` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
