title: Managed Identity - how to debug locally
body: <p>I am using the following code to test system managed identity on my web app and it works fine when I deploy in Azure but is there a way to test locally(without giving permissions to my Azure account for the resource?)?</p>
  <pre><code>AzureServiceTokenProvider azureServiceTokenProvider = new AzureServiceTokenProvider();
  
  KeyVaultClient keyVaultClient = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(azureServiceTokenProvider.KeyVaultTokenCallback));
  var secret = await keyVaultClient.GetSecretAsync(&quot;https://EASDemo.vault.azure.net/secrets/test&quot;)
                  .ConfigureAwait(false);
  return new string[] { secret.Value };
  </code></pre>