Skip to content

Commit

Permalink
feat: Add client credential oauth integration support + related datab…
Browse files Browse the repository at this point in the history
…ricks 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]>
  • Loading branch information
zackverham and schloerke authored Dec 6, 2024
1 parent cbf3634 commit 6b82ba3
Show file tree
Hide file tree
Showing 8 changed files with 676 additions and 37 deletions.
4 changes: 4 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,7 @@ quartodoc:
contents:
- connect.metrics
- connect.metrics.usage
- title: External Integrations
contents:
- connect.external.databricks
- connect.external.snowflake
4 changes: 2 additions & 2 deletions src/posit/connect/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ def find_by(
-------
Optional[ContentItem]
Example
-------
Examples
--------
>>> find_by(name="example-content-name")
"""
attr_items = attrs.items()
Expand Down
Loading

0 comments on commit 6b82ba3

Please sign in to comment.