databricks / databricks-sql-go

Golang database/sql driver for Databricks SQL.
Apache License 2.0
34 stars 37 forks source link

Azure managed identities authentication support #231

Open shelldandy opened 3 weeks ago

shelldandy commented 3 weeks ago

Do we have any sort of timeline on when this feature would be integrated to the driver?

https://learn.microsoft.com/en-us/azure/databricks/dev-tools/auth/#--supported-authentication-types-by-azure-databricks-tool-or-sdk

image
shelldandy commented 3 weeks ago

And if not is there any workaround to getting a client to connect maybe using the go-sdk?

kravets-levko commented 3 weeks ago

Hi @shelldandy! Unfortunately, this type of auth is currently not supported, and there are no estimates for implementing it. You can try to implement it yourself as a custom auth provider, and then use it with dbsql.WithAuthenticator(authenticator):

https://github.com/databricks/databricks-sql-go/blob/d70ab7c5b6dda71f1439bd3edc51a2d2022f7d92/examples/oauth/main.go#L35-L39