Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Enterprise Library Database doesn't support AccessToken #41

Open
john0923 opened this issue Jul 12, 2019 · 0 comments
Open

Enterprise Library Database doesn't support AccessToken #41

john0923 opened this issue Jul 12, 2019 · 0 comments

Comments

@john0923
Copy link

Hi, We want to connect to Azure Sql database using Azure SQL authentication with a Managed Service Identity, But through Enterprise Library is not possible

Using native SqlConnection it is possible, But as I said, EL doesn't support this behavior

We made test Using Native SqlConnection from System.Data.SqlClient as the link shows and it works
https://winterdom.com/2017/10/19/azure-sql-auth-with-msi

But, If we use database = new GenericDatabase(builder.ConnectionString, 'System.Data.SqlClient'); it is not possible to set AccessToken in the same connection object in the database object that was created.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant