Closed bittrance closed 1 year ago
any update on this one?
Also very interested in this feature, thanks a lot for providing it.
Also very interested in this PR going in. I see that there is documentation and a series of tests. Tagging @magne :)
@bittrance Is the azuread_default_chain_auth
meant to work with these environment variables? https://docs.microsoft.com/en-us/dotnet/api/azure.identity.environmentcredential?view=azure-dotnet
@waltervos I don't have an easy way of testing, but according to https://github.com/denisenkom/go-mssqldb#azure-active-directory-authentication it should start with trying "EnvironmentCredential" so I would expect so. (Indeed, a colleague warned me that there are situations where you may get envs injected that you want to ignore and this is why I implemented the MSI-specific variant.)
Fixes #30.
This PR implements two of the auth forms available through the new fedauth:
ActiveDirectoryDefault
andActiveDirectoryManagedIdentity
(because user-assigned identity) as these are the most useful variants.