From 7ef2db55ab3f50969ab72822d00cc8c93046340d Mon Sep 17 00:00:00 2001 From: Joe Ratzer <2004631+joeratzer@users.noreply.github.com> Date: Thu, 19 Oct 2023 13:52:52 +0100 Subject: [PATCH] Update AadService.cs Fix tabbing --- .../EncryptCredentials/Services/AadService.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.NET Core/EncryptCredentials/EncryptCredentials/Services/AadService.cs b/.NET Core/EncryptCredentials/EncryptCredentials/Services/AadService.cs index 9518feb2..e4df12e3 100644 --- a/.NET Core/EncryptCredentials/EncryptCredentials/Services/AadService.cs +++ b/.NET Core/EncryptCredentials/EncryptCredentials/Services/AadService.cs @@ -57,10 +57,11 @@ public string GetAccessToken() // Create a confidential client to authorize the app with the AAD app IConfidentialClientApplication clientApp = ConfidentialClientApplicationBuilder - .Create(azureAd.Value.ClientId) - .WithClientSecret(azureAd.Value.ClientSecret) - .WithAuthority(tenantSpecificUrl) - .Build(); + .Create(azureAd.Value.ClientId) + .WithClientSecret(azureAd.Value.ClientSecret) + .WithAuthority(tenantSpecificUrl) + .Build(); + // Make a client call if Access token is not available in cache authenticationResult = clientApp.AcquireTokenForClient(azureAd.Value.ScopeBase).ExecuteAsync().Result; }