Skip to content

Feature | Provide the same Managed Identity support as Azure.Identity #947

Closed

Description

@MarcWils

#616 introduced support for Managed Identities.

This may work for the most common scenarios. However, both Azure.Identity and Microsoft.Azure.Services.AppAuthentication have implementations which also support Service Fabric.

Using the SqlAuthenticationProvider from Microsoft.Azure.Services.AppAuthentication works in a Service Fabric application. The one from Microsoft.Data.SqlClient doesn't.

This may also be related to #771. However, the discussion there seems to mainly focussing on caching the access token.

It seems a choice has to be made between extending the built-in support in Microsoft.Data.SqlClient or providing seamless integration with Azure.Identity.

Activity

  1. cheenamalhotra commented on Mar 3, 2021

    @cheenamalhotra
    Member

    Hi @MarcWils

    Yes, we will be working on that soon, now that we've bumped up minimum .NET Framework version supported to be v4.6.1.
    From #771 discussions, access Token caching changes are currently not finalized, so that's out of scope from that issue.

    We will be replacing calls for token acquisition to use Azure.Identity instead and the same way for Managed Identity authentication.

  2. ericsampson commented on Mar 22, 2021

    @ericsampson

    Thanks @cheenamalhotra.

    What does "(access_token caching) is out of scope" mean? I'm hoping that is going to be part of this implementation. Thanks!!

  3. cheenamalhotra commented on Mar 22, 2021

    @cheenamalhotra
    Member

    Hi @ericsampson

    There are 2 access token topics in that thread:

    1. Integrate with Azure.Identity #771 (comment) (SqlConnection.AccessToken property - not relevant to Azure.Identity support and is in internal discussions for any potential improvements - I meant this before :))
    2. Integrate with Azure.Identity #771 (comment) (Relates to caching tokens internally when acquiring from TokenCredential API, for which we will consider best options we have to implement/use caching, using Azure.Identity)
  4. ericsampson commented on Mar 23, 2021

    @ericsampson

    Thanks, there's a lot of moving pieces to keep track of in these conversations, especially since they're spread across a bunch of issues :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions