sparkplug
Contributor

I am currently using a two step process, logging in using azure library and then getting an access token from Azure using the databricks scope. And then using that to authorize towards Databricks. I would like to use `env-oidc` auth type instead, but it doesn't seem to work. Not sure if it's trying to write .databrickscfg . And am not sure how the token refresh is handled in the sdk


from databricks.sdk import WorkspaceClient
from azure.identity import WorkloadIdentityCredential

credential = WorkloadIdentityCredential(client_id=os.environ["APPLICATION_ID"])
token = credential.get_token(DATABRICKS_SCOPE).token
return WorkspaceClient(host=os.environ["DATABRICKS_HOST"], token=token)

I am using
databricks-sdk==0.67.0
azure-identity==1.25.0


Any suggestions are appreciated.