@@ -137,10 +137,10 @@ the [Password file, LDAP or Salesforce authentication type](https://trino.io/doc
137
137
138
138
```python
139
139
from sqlalchemy import create_engine
140
-
140
+
141
141
engine = create_engine(" trino://<username>:<password>@<host>:<port>/<catalog>" )
142
-
143
- # or
142
+
143
+ # or as connect_args
144
144
from trino.auth import BasicAuthentication
145
145
engine = create_engine(
146
146
" trino://<username>@<host>:<port>/<catalog>" ,
@@ -161,7 +161,7 @@ the [`JWT` authentication type](https://trino.io/docs/current/security/jwt.html)
161
161
```python
162
162
from trino.dbapi import connect
163
163
from trino.auth import JWTAuthentication
164
-
164
+
165
165
conn = connect(
166
166
user = " <username>" ,
167
167
auth = JWTAuthentication(" <jwt_token>" ),
@@ -174,10 +174,10 @@ the [`JWT` authentication type](https://trino.io/docs/current/security/jwt.html)
174
174
175
175
```python
176
176
from sqlalchemy import create_engine
177
-
177
+
178
178
engine = create_engine(" trino://<username>@<host>:<port>/<catalog>/<schema>?access_token=<jwt_token>" )
179
-
180
- # or
179
+
180
+ # or as connect_args
181
181
from trino.auth import JWTAuthentication
182
182
engine = create_engine(
183
183
" trino://<username>@<host>:<port>/<catalog>" ,
@@ -252,7 +252,7 @@ The OAuth2 token will be cached either per `trino.auth.OAuth2Authentication` ins
252
252
253
253
engine = create_engine(" trino://<username>@<host>:<port>/<catalog>/<schema>?cert=<cert>&key=<key>" )
254
254
255
- # or
255
+ # or as connect_args
256
256
engine = create_engine(
257
257
" trino://<username>@<host>:<port>/<catalog>" ,
258
258
connect_args = {
@@ -272,7 +272,7 @@ the [`Kerberos` authentication type](https://trino.io/docs/current/security/kerb
272
272
```python
273
273
from trino.dbapi import connect
274
274
from trino.auth import KerberosAuthentication
275
-
275
+
276
276
conn = connect(
277
277
user = " <username>" ,
278
278
auth = KerberosAuthentication(... ),
0 commit comments