From bf434c22d49c5b912aa42809978a01eda987bea1 Mon Sep 17 00:00:00 2001 From: Peter <34331512+pmaytak@users.noreply.github.com> Date: Mon, 6 May 2024 23:10:10 -0700 Subject: [PATCH] Update client-credential-flows.md --- .../web-apps-apis/client-credential-flows.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/msal-dotnet-articles/acquiring-tokens/web-apps-apis/client-credential-flows.md b/msal-dotnet-articles/acquiring-tokens/web-apps-apis/client-credential-flows.md index 13eac2b53..02ef55514 100644 --- a/msal-dotnet-articles/acquiring-tokens/web-apps-apis/client-credential-flows.md +++ b/msal-dotnet-articles/acquiring-tokens/web-apps-apis/client-credential-flows.md @@ -36,13 +36,14 @@ var singletonApp = ConfidentialClientApplicationBuilder.Create(config.ClientId) // the cache serialization (see below) // When making the request, specify the tenant-based authority -var authResult = await app.AcquireTokenForClient(scopes: new [] { "some_app_id_uri/.default"}) // Uses the token cache automatically, which is optimized for multi-tenant access - .WithAuthority(AzureCloudInstance.AzurePublic, "{tenantID}") // Do not use "common" or "organizations"! +var authResult = await app.AcquireTokenForClient(scopes: new [] { "some_app_id_uri/.default"}) // Uses the token cache automatically, which is optimized for multi-tenant access + // Do not use "common" or "organizations"! + .WithTenantId("{tenantID}") // or .WithTenantIdFromAuthority({"authority"}) .ExecuteAsync(); ``` ->[!IMPORTANT] ->Do not use `common` or `organizations` authority for client credential flows. Specify the tenant ID in the authority. +> [!IMPORTANT] +> Do not use `common` or `organizations` authority for client credential flows. Specify the tenant ID in the authority. ## Custom cache serialization