Please document how to get a token with impersonation_scope to connect to an Azure SQL Database #15586
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Feature Request
I am trying to implement the equivalent of sqlcmd -G, using the token-based access connector of the go-mssqldb driver.
The driver doesn't yet negotiate with the server to provide the tenant id and authority URLs so I know I have to use defaults for now, or have the user set them with environment variables.
Once I create a credential using
azidentity.NewDefaultAzureCredential
, how do I fetch a token with scopeuser_impersonation
for the resourcehttps://database.windows.net
?The text was updated successfully, but these errors were encountered: