Repository navigation
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 |
Answered by
ErikEJ
Jun 29, 2022
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. |
1 reply
Answer selected by
niraj-bits
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the SqlClient calls the Endpoint to get the token "automagically" when you use Azure AD auth options in the connection string.