-
Notifications
You must be signed in to change notification settings - Fork 4
Add support for Managed Identity access #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks, this is looking like a nice first step. In order to solve this I was thinking of somehow 'injecting' the functionality to retrieve a token, so the client can take the dependency on a specific version of the Something like: interface ISqlBindingTokenProvider
{
Task<string> GetAccessToken();
}If the client (Function App) has a type registered with the using (var connection = new SqlConnection(attribute.ConnectionString))
{
// Somehow retrieve the ISqlBindingTokenProvider and if not `null`, invoke the method `GetAccessToken`
// and add the retrieved value to the `connection
connection.Open();
using (var command = connection.CreateCommand())I haven't done the research on how to inject such a thing though. I'll add this also to the open issue to make the expectation more clear. |
Jayendranarumugam patch 1
|
Open a fresh PR #12 . So closing this old one |
Provided the support for Managed Identity access for the SQL.