Skip to content

Interface: AuthClient

WorkspaceClient-shaped Databricks authentication facade.

  • DatabricksAuthClientInfo

optional accountId?: string

DatabricksAuthClientInfo.accountId


authType: "databricks-cli" | "oauth-m2m" | "pat" | "app_obo" | "app_sp" | "runtime"

DatabricksAuthClientInfo.authType


host: string = options.normalizedUrlSchema

DatabricksAuthClientInfo.host


principal: string

DatabricksAuthClientInfo.principal


optional profile?: string

DatabricksAuthClientInfo.profile


target: "workspace" | "account" | "unified" = targetKindSchema

DatabricksAuthClientInfo.target


optional workspaceId?: string

DatabricksAuthClientInfo.workspaceId

headers(options?): Promise<Record<string, string>>

TokenOptions

Promise<Record<string, string>>


logout(): Promise<void>

Promise<void>


token(options?): Promise<AccessToken>

TokenOptions

Promise<AccessToken>