You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,12 @@ Please refer to the [Coordinator JWT
92
92
Authentication](https://trino.io/docs/current/security/jwt.html) for
93
93
server-side configuration.
94
94
95
+
#### Authorization header forwarding
96
+
This driver supports forwarding authorization headers by adding a [NamedArg](https://godoc.org/database/sql#NamedArg) with the name `accessToken` (e.g., `accessToken=<your_access_token>`) and setting the `ForwardAuthorizationHeader` field in the [Config](https://godoc.org/github.com/trinodb/trino-go-client/trino#Config) struct to `true`.
97
+
98
+
When enabled, this configuration will override the `AccessToken` set in the `Config` struct.
99
+
100
+
95
101
#### System access control and per-query user information
96
102
97
103
It's possible to pass user information to Trino, different from the principal
KerberosPrincipalstring// Kerberos Principal used to authenticate to KDC (optional)
182
+
KerberosRemoteServiceNamestring// Trino coordinator Kerberos service name (optional)
183
+
KerberosRealmstring// The Kerberos Realm (optional)
184
+
KerberosConfigPathstring// The krb5 config path (optional)
185
+
SSLCertPathstring// The SSL cert path for TLS verification (optional)
186
+
SSLCertstring// The SSL cert for TLS verification (optional)
187
+
AccessTokenstring// An access token (JWT) for authentication (optional)
188
+
ForwardAuthorizationHeaderbool// Allow forwarding the `accessToken` named query parameter in the authorization header, overwriting the `AccessToken` option, if set (optional)
187
189
}
188
190
189
191
// FormatDSN returns a DSN string from the configuration.
0 commit comments