About a year ago, I'm pretty sure I followed this guide to access my Key Vault using connected Services.
I'm using ASP.NET Core 2.2 and my code still access & use key vault's secrets but...
I have only configured "Connected services" from solution explorer. In addition, I also installed other Nuget dependencies:
I believe I'm using "Managed Identities" but I haven't any code on my _Program.cs_ that calls to _AzureServiceTokenProvider_
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@sebainones Thanks for your comment! We will review and provide an update as appropriate.
@sebainones I updated tutorial to better reflect current state. In general Microsoft.AspNetCore.AzureKeyVault.HostingStartup behind the scenes is using AppAuthentication library(listed as dependencies) which will use managed identity if available and try user principle if not.
With new SDK we moved to DefaultAzureCredential which is working similar, but also available for other languages and that is new recommend way https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.Identity/1.1.1/api/index.html #please-close