Skip to content

Commit 1bc20ef

Browse files
scottaddiejsquire
andauthored
Apply suggestion from @jsquire
Co-authored-by: Jesse Squire <[email protected]>
1 parent b05849f commit 1bc20ef

File tree

1 file changed

+3
-0
lines changed
  • docs/azure/sdk/snippets/authentication/local-dev-service-principal

1 file changed

+3
-0
lines changed

docs/azure/sdk/snippets/authentication/local-dev-service-principal/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ void registerUsingServicePrincipal(WebApplicationBuilder builder)
5454
clientBuilder.AddBlobServiceClient(
5555
new Uri("https://<account-name>.blob.core.windows.net"));
5656

57+
// By default, the client builder creates a DefaultAzureCredential instance on your
58+
// behalf. For production use, it is strongly recommended that you register an
59+
// instance of the specific credential type with the builder.
5760
clientBuilder.UseCredential(new ClientSecretCredential(tenantId, clientId, clientSecret));
5861
});
5962
#endregion snippet_ClientSecretCredential_UseCredential

0 commit comments

Comments
 (0)