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
In order to pass additional connection attributes use [connect_args](https://docs.sqlalchemy.org/en/14/core/engines.html#sqlalchemy.create_engine.params.connect_args) method.
92
-
Attributes can be also passed in connection string.
92
+
Attributes can also be passed in the connection string.
93
93
94
94
```python
95
95
from sqlalchemy import create_engine
@@ -112,12 +112,12 @@ engine = create_engine(
112
112
)
113
113
```
114
114
115
-
## Authentications
115
+
## Authentication mechanisms
116
116
117
-
### Basic Authentication
117
+
### Basic authentication
118
118
119
119
The `BasicAuthentication` class can be used to connect to a Trino cluster configured with
120
-
the [Password file authentication type, LDAP authentication type or Salesforce authentication type](https://trino.io/docs/current/security/authentication-types.html):
120
+
the [Password file, LDAP or Salesforce authentication type](https://trino.io/docs/current/security/authentication-types.html):
121
121
122
122
- DBAPI
123
123
@@ -151,7 +151,7 @@ the [Password file authentication type, LDAP authentication type or Salesforce a
151
151
)
152
152
```
153
153
154
-
### JWT Authentication
154
+
### JWT authentication
155
155
156
156
The `JWTAuthentication`class can be used to connect to a Trino cluster configured with
157
157
the [`JWT` authentication type](https://trino.io/docs/current/security/jwt.html):
@@ -188,7 +188,7 @@ the [`JWT` authentication type](https://trino.io/docs/current/security/jwt.html)
188
188
)
189
189
```
190
190
191
-
### OAuth2 Authentication
191
+
### OAuth2 authentication
192
192
193
193
The `OAuth2Authentication`class can be used to connect to a Trino cluster configured with
194
194
the [OAuth2 authentication type](https://trino.io/docs/current/security/oauth2.html).
@@ -226,7 +226,7 @@ The OAuth2 token will be cached either per `trino.auth.OAuth2Authentication` ins
226
226
)
227
227
```
228
228
229
-
### Certificate Authentication
229
+
### Certificate authentication
230
230
231
231
`CertificateAuthentication`class can be used to connect to Trino cluster configured with [certificate based authentication](https://trino.io/docs/current/security/certificate.html). `CertificateAuthentication` requires paths to a valid client certificate and private key.
232
232
@@ -262,7 +262,7 @@ The OAuth2 token will be cached either per `trino.auth.OAuth2Authentication` ins
262
262
)
263
263
```
264
264
265
-
### Kerberos Authentication
265
+
### Kerberos authentication
266
266
267
267
The `KerberosAuthentication`class can be used to connect to a Trino cluster configured with
268
268
the [`Kerberos` authentication type](https://trino.io/docs/current/security/kerberos.html):
@@ -296,16 +296,16 @@ the [`Kerberos` authentication type](https://trino.io/docs/current/security/kerb
296
296
)
297
297
```
298
298
299
-
### User impersonation
299
+
## User impersonation
300
300
301
-
In the case of user who submit the query isnot the same as user who authenticate to Trino server (e.g in Superset),
302
-
you can set`username` to different from`principal_id`. Note that `principal_id`is extracted from`auth`,
303
-
for example `username`in BasicAuthentication, `sub`inJWT token or`service-name`in KerberosAuthenticationand
304
-
please make sure that [`principal_id` has permission to impersonate `username`](https://trino.io/docs/current/security/file-system-access-control.html#impersonation-rules).
301
+
In the case where user who submits the query isnot the same as user who authenticates to Trino server (e.g in Superset),
302
+
you can set`username` to be different from`principal_id`. Note that `principal_id`is extracted from`auth`,
303
+
for example `username`in BasicAuthentication, `sub`inJWT token or`service-name`in KerberosAuthentication.
304
+
You need to make sure that [`principal_id` has permission to impersonate `username`](https://trino.io/docs/current/security/file-system-access-control.html#impersonation-rules).
0 commit comments