I am using DefaultCredential to connect to build configuration from azure keyvault.
var secretClient = new SecretClient(new Uri($"https://{keyvaultName}.vault.azure.net/"),
new DefaultAzureCredential(true)
);
IConfigurationRoot configuration = null;
configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json")
.AddEnvironmentVariables()
.AddAzureKeyVault(secretClient, new PrefixKeyVaultSecretManager(environment))
.AddUserSecrets<Program>().Build();
This was working earlier but now it is failing with interactive browser authentication. After selecting account, it is redirecting back to localhost and throwing error ("localhost sent an invalid response") I am using "Azure.Identity" Version="1.4.1" . I also tried with latest beta package(1.5.0-beta.4). Also Azure.Security.KeyVault.Secrets" Version="4.2.0"