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

Enterprise Library Database doesn't support AccessToken #41

@john0923

Description

@john0923

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions