When to use the access token? #1665
-
Hello, the Sqlclient supports passing in access token, this is retrieved from a REST api call to an endpoint accessible within the Azure VM. I can also specify Authentication=Active Directory MSI in the connection string. I am confused when should I use the access token? Why is it provided in first place when one can always specify Authentication=Active Directory MSI, or is it that under the hood, the Sql client gets the access token by itself and sets it. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, the SqlClient calls the Endpoint to get the token "automagically" when you use Azure AD auth options in the connection string. |
Beta Was this translation helpful? Give feedback.
Yes, the SqlClient calls the Endpoint to get the token "automagically" when you use Azure AD auth options in the connection string.