Skip to content

Support for Posit Workbench with connect.external.snowflake #426

@blairj09

Description

@blairj09

As described in the docs, connect.external.snowflake provides a PositAuthenticator class where you can define a local_authenticator (most examples use "EXTERNALBROWSER":

connect.external.snowflake.PositAuthenticator(
    self
    local_authenticator=None
    client=None
    user_session_token=None
    audience=None
)

It would be really nice if this more closely matched connect.external.databricks where you can define a default_strategy, workbench_strategy, and connect_strategy:

def cfg():
    session_token = session.http_conn.headers.get("Posit-Connect-User-Session-Token")
    return databricks_config(
        posit_default_strategy=databricks_cli,
        posit_workbench_strategy=WorkbenchStrategy(),
        posit_connect_strategy=ConnectStrategy(user_session_token=session_token),
        host=os.getenv("DATABRICKS_HOST"),

As it stands today, building something with Python in Workbench and then deploying to Connect with OAuth credentials for Snowflake is still a bit of an auth headache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sdkUsed for automation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions