Skip to content

[Go] support auth methods beyond access tokens #101

@amoeba

Description

@amoeba

Databricks and the underlying Go SQL driver support three auth methods,

  • PAT
  • OAuth U2M
  • OAuth M2M

https://docs.databricks.com/aws/en/dev-tools/go-sql-driver#authentication

The driver only supports access tokens right now,

databricks/go/database.go

Lines 98 to 104 in 759b66b

// FIXME: Support other auth methods
if d.accessToken == "" {
return nil, adbc.Error{
Code: adbc.StatusInvalidArgument,
Msg: "access token is required",
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions