Skip to content

Commit

Permalink
docs(trino): add note about SSO configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth authored and cpcloud committed Oct 16, 2023
1 parent cd91a7e commit 457534b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/backends/trino.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,25 @@ from _utils import render_do_connect
render_do_connect("trino")
```

### Authenticating with SSO

Ibis supports connecting to SSO-enabled Trino clusters using the
`OAuth2Authentication` helper from the `trino` library.

```python
import ibis
from trino.auth import OAuth2Authentication

con = ibis.trino.connect(
user="user",
port=8080,
database="database",
schema="default",
auth=OAuth2Authentication(),
http_scheme="https"
)
```

```{python}
#| echo: false
BACKEND = "Trino"
Expand Down

0 comments on commit 457534b

Please # to comment.