terraform-provider-postgresql
terraform-provider-postgresql copied to clipboard
Add Azure AD authentication (alternative approach)
This PR contains an alternative approach for adding Azure Active Directory authentication support for issue #37. @younux also opened a PR (#52) so we'll have to decide on an approach.
My personal reasons for liking the approach in this PR is that I reuse the exact same machinery as is available in the azurerm and azuread providers. This means that users of these providers (which is practically everyone using Azure) can configure the authentication the exact same way. This is especially important because there are 4 different ways of authenticating with Azure not all of which #52 supports, but this PR does.
I can add an acceptance test if you prefer, but I'm not sure how to proceed there with regards to requiring an Azure subscription etc.
Please have a look and let me know if you have any comments :).