-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
sdkUsed for automationUsed for automation
Description
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
Labels
sdkUsed for automationUsed for automation