Using the JWT Credentials Provider
You can configure the connector to authenticate the connection using the JSON Web Token (JWT) credentials provider, which obtains credentials from the JWT service. To do this, connect to Presto using a connection URL that includes property settings that specify information about the JWT service.
For more information, see Specifying JWT Information in the Connection URL.
- If any information is included in both places, the information specified directly in the connection URL takes precedence over the information in the profile.
Specifying JWT Information in the Connection URL
In your connection URL, set the following properties:
Some properties can be set through aliases, as described below. If you specify both a property name and its alias, the setting associated with the property name takes precedence.
To specify JWT information in the connection URL:
- In your connection URL, set the following properties:
Property Value
AuthenticationType
JWTaccessTokenThe access token corresponding to the user name that you use to access the Presto server.
SSLTrustStorePathThe full path of the Java TrustStore containing the server certificate for one-way SSL authentication.
SSLTrustStorePwdThe password for accessing the Java TrustStore that you specified using the property SSLTrustStorePath.
UIDThis property is optional. The user name that you use to access Presto. Example of a connection URL with JWT:
jdbc:presto://presto-demo-cdh:8443/hive/sen;AuthenticationType=JWT Authentication;accessToken=[ExampleToken];SSLTrustStorePath=[TrustStorePath];SSLTrustStorePwd=[TrustStorePassword];UID=tokenUID