Skip to content

Commit 6b82ba3

Browse files
feat: Add client credential oauth integration support + related databricks helpers to SDK (#348)
This PR adds a new function to the oauth tooling. It knows how to craft a request against the credential exchange endpoint that can interface with client credential flows. This supports service-account-like oauth interactions. Connect sets an environment variable called `CONNECT_CONTENT_SESSION_TOKEN` which can be used by the executing content when making the request. This means that the syntax for using this new credential exchange function is slightly different. This PR also adds the databricks extensions needed to use this new oauth exchange flow when interfacing with databricks resources. This feature won't land in Connect until the upcoming release gets published - I don't know how we typically queue up work like this in sync with product releases. --------- Co-authored-by: Barret Schloerke <[email protected]>
1 parent cbf3634 commit 6b82ba3

File tree

8 files changed

+676
-37
lines changed

8 files changed

+676
-37
lines changed

docs/_quarto.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@ quartodoc:
107107
contents:
108108
- connect.metrics
109109
- connect.metrics.usage
110+
- title: External Integrations
111+
contents:
112+
- connect.external.databricks
113+
- connect.external.snowflake

src/posit/connect/content.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,8 @@ def find_by(
771771
-------
772772
Optional[ContentItem]
773773
774-
Example
775-
-------
774+
Examples
775+
--------
776776
>>> find_by(name="example-content-name")
777777
"""
778778
attr_items = attrs.items()

0 commit comments

Comments
 (0)