From e04e7e1f80d8c3fb80053907f2caea18d427bf64 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 10:25:40 +0300 Subject: [PATCH 01/15] Bumps versions for Azure.Identity, Azure.Identity.Broker and Microsoft.Graph.Core --- .../Microsoft.Graph.Authentication.Core.csproj | 10 +++++----- .../Utilities/AuthenticationHelpers.cs | 4 ++-- .../Authentication/Helpers/HttpHelpers.cs | 1 - src/Authentication/Authentication/build-module.ps1 | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj index d1f74e2c15d..a954dd5ad16 100644 --- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj +++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj @@ -2,18 +2,18 @@ 9.0 - netstandard2.0;net6.0;net472 + netstandard2.0;net472;net9.0 Microsoft.Graph.PowerShell.Authentication.Core - 2.18.0 + 2.25.0 true true - - - + + + diff --git a/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs b/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs index 3d004336109..bfd1ce72aee 100644 --- a/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs +++ b/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs @@ -207,8 +207,8 @@ public static async Task GetAuthenticationProv { if (authContext is null) throw new AuthenticationException(ErrorConstants.Message.MissingAuthContext); - var tokenCrdential = await GetTokenCredentialAsync(authContext, default).ConfigureAwait(false); - return new AzureIdentityAccessTokenProvider(credential: tokenCrdential, scopes: GetScopes(authContext)); + var tokenCredential = await GetTokenCredentialAsync(authContext, default).ConfigureAwait(false); + return new AzureIdentityAccessTokenProvider(credential:tokenCredential, observabilityOptions: null,isCaeEnabled: true,scopes: GetScopes(authContext)); } public static async Task AuthenticateAsync(IAuthContext authContext, CancellationToken cancellationToken) diff --git a/src/Authentication/Authentication/Helpers/HttpHelpers.cs b/src/Authentication/Authentication/Helpers/HttpHelpers.cs index cfd9252f5f5..36a12ce1f1a 100644 --- a/src/Authentication/Authentication/Helpers/HttpHelpers.cs +++ b/src/Authentication/Authentication/Helpers/HttpHelpers.cs @@ -54,7 +54,6 @@ private static HttpClient GetGraphHttpClient(AzureIdentityAccessTokenProvider au new NationalCloudHandler(), new ODataQueryOptionsHandler(), new HttpVersionHandler(), - new CompressionHandler(), new RetryHandler(new RetryHandlerOption{ Delay = requestContext.RetryDelay, MaxRetry = requestContext.MaxRetry, diff --git a/src/Authentication/Authentication/build-module.ps1 b/src/Authentication/Authentication/build-module.ps1 index 44d580f4009..58c795d740b 100644 --- a/src/Authentication/Authentication/build-module.ps1 +++ b/src/Authentication/Authentication/build-module.ps1 @@ -8,7 +8,7 @@ $ErrorActionPreference = 'Stop' $ModuleName = "Authentication" $ModulePrefix = "Microsoft.Graph" $netStandard = "netstandard2.0" -$netApp = "net6.0" +$netApp = "net9.0" $netFx = "net472" $copyExtensions = @('.dll', '.pdb') From 95af4ab54c2e3cf2f9b7282f3bfa186c8cd06c9e Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 10:40:42 +0300 Subject: [PATCH 02/15] Added pipeline task to install net9.x --- .azure-pipelines/common-templates/install-tools.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/common-templates/install-tools.yml b/.azure-pipelines/common-templates/install-tools.yml index ec31ddc50a8..227f9471fb8 100644 --- a/.azure-pipelines/common-templates/install-tools.yml +++ b/.azure-pipelines/common-templates/install-tools.yml @@ -5,8 +5,12 @@ steps: - task: UseDotNet@2 displayName: Use .NET SDK inputs: - debugMode: false version: 8.x + + - task: UseDotNet@2 + displayName: Use .NET SDK + inputs: + version: 9.x - task: NuGetToolInstaller@1 displayName: Install Nuget From b97b890e282ccc734974f7e0f47d00f06481a3d8 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 11:02:25 +0300 Subject: [PATCH 03/15] Ensures that Az.Accounts module installs the latest version 4.0.2 --- .../Authentication/test/Connect-MgGraph.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 index 6f88feddf0e..8a5014217cc 100644 --- a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 +++ b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 @@ -9,7 +9,7 @@ BeforeAll { $RandomClientId = (New-Guid).Guid $AvailableAzModule = Get-Module Az.Accounts -ListAvailable - if ($AvailableAzModule.Count -lt 1) { + if (-not($AvailableAzModule[0].Version -eq '4.0.2')) { Install-Module Az.Accounts -Repository PSGallery -Scope CurrentUser -Force -AllowClobber } } From 8d49d29912f4ffc06ddd3283e9c24f1203ac4ad2 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 11:45:09 +0300 Subject: [PATCH 04/15] Removed indexing incase of null --- .../Authentication/test/Connect-MgGraph.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 index 8a5014217cc..b8099e41a15 100644 --- a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 +++ b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 @@ -8,8 +8,8 @@ BeforeAll { Import-Module $ModulePath -Force $RandomClientId = (New-Guid).Guid - $AvailableAzModule = Get-Module Az.Accounts -ListAvailable - if (-not($AvailableAzModule[0].Version -eq '4.0.2')) { + $AvailableAzModule = Get-InstalledModule Az.Accounts + if (-not($AvailableAzModule.Version -eq '4.0.2')) { Install-Module Az.Accounts -Repository PSGallery -Scope CurrentUser -Force -AllowClobber } } From 57905502ce5782ea82af4bb5f26301e16c52a12b Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 11:56:56 +0300 Subject: [PATCH 05/15] Removed condition for checking AZ.Accounts module --- .../Authentication/test/Connect-MgGraph.Tests.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 index b8099e41a15..10f2ada48d8 100644 --- a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 +++ b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 @@ -7,11 +7,7 @@ BeforeAll { $ModulePath = Join-Path $PSScriptRoot "..\artifacts\$ModuleName.psd1" Import-Module $ModulePath -Force $RandomClientId = (New-Guid).Guid - - $AvailableAzModule = Get-InstalledModule Az.Accounts - if (-not($AvailableAzModule.Version -eq '4.0.2')) { - Install-Module Az.Accounts -Repository PSGallery -Scope CurrentUser -Force -AllowClobber - } + Install-Module Az.Accounts -Repository PSGallery -Scope CurrentUser -Force -AllowClobber } Describe 'Connect-MgGraph ParameterSets' { BeforeAll { From 56cf63d3530c9ad1035fd242209836a886fa6087 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 13:16:27 +0300 Subject: [PATCH 06/15] Updated target framework on test csproj file --- .../Microsoft.Graph.Authentication.Core.csproj | 2 +- .../Microsoft.Graph.Authentication.Test.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj index a954dd5ad16..3fee19febe6 100644 --- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj +++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj @@ -11,7 +11,7 @@ true - + diff --git a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj index 8f6dc50c09f..1645a77d3e4 100644 --- a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj +++ b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj @@ -2,12 +2,12 @@ net6.0;net472 false - 2.8.0 + 2.25.0 - + From 1479852733765aa204c4a89c4d4d91bb69ebd3ca Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 13:38:48 +0300 Subject: [PATCH 07/15] Updated target framework for test --- .../Microsoft.Graph.Authentication.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj index 1645a77d3e4..acc9572fa85 100644 --- a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj +++ b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj @@ -1,6 +1,6 @@ - net6.0;net472 + net9.0;net472 false 2.25.0 From ddf57438623c2a588798de4333152367ca737b49 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 13:52:52 +0300 Subject: [PATCH 08/15] Updated system.runtime --- .../Microsoft.Graph.Authentication.Core.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj index 3fee19febe6..0e42d81355c 100644 --- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj +++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj @@ -16,6 +16,7 @@ + From dc9634210640dc18472886ba51925299e00ae4ca Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 14:04:02 +0300 Subject: [PATCH 09/15] Downgraded target framework to 8.0 --- .../Microsoft.Graph.Authentication.Core.csproj | 3 +-- .../Microsoft.Graph.Authentication.Test.csproj | 2 +- src/Authentication/Authentication/build-module.ps1 | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj index 0e42d81355c..d5d92661462 100644 --- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj +++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj @@ -2,7 +2,7 @@ 9.0 - netstandard2.0;net472;net9.0 + netstandard2.0;net472;net8.0 Microsoft.Graph.PowerShell.Authentication.Core 2.25.0 @@ -16,7 +16,6 @@ - diff --git a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj index acc9572fa85..2a8d8e6152f 100644 --- a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj +++ b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Authentication/Authentication/build-module.ps1 b/src/Authentication/Authentication/build-module.ps1 index 58c795d740b..85edb194e06 100644 --- a/src/Authentication/Authentication/build-module.ps1 +++ b/src/Authentication/Authentication/build-module.ps1 @@ -8,7 +8,7 @@ $ErrorActionPreference = 'Stop' $ModuleName = "Authentication" $ModulePrefix = "Microsoft.Graph" $netStandard = "netstandard2.0" -$netApp = "net9.0" +$netApp = "net8.0" $netFx = "net472" $copyExtensions = @('.dll', '.pdb') From 737a9bf07b86459131607ae3e4375c0af27b0cd1 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 14:06:57 +0300 Subject: [PATCH 10/15] Update target framework --- .../Microsoft.Graph.Authentication.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj index 2a8d8e6152f..f40643cfdb6 100644 --- a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj +++ b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj @@ -1,6 +1,6 @@ - net9.0;net472 + net8.0;net472 false 2.25.0 From 6e66e9859312e32eee61ffede7f926c463a823f1 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 14:24:51 +0300 Subject: [PATCH 11/15] Updated expected result --- .../Authentication/test/Connect-MgGraph.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 index 10f2ada48d8..382ad62a98b 100644 --- a/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 +++ b/src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1 @@ -77,7 +77,7 @@ Describe 'Connect-MgGraph In Environment Variable Mode' { $Env:AZURE_CLIENT_SECRET = "Not_Valid" $Env:AZURE_TENANT_ID = "common" Connect-MgGraph -EnvironmentVariable -ErrorAction Stop - } | Should -Throw -ExpectedMessage "*ClientSecretCredential authentication failed: AADSTS700016: Application with identifier 'Not_Valid' was not found in the directory 'Microsoft'.*" + } | Should -Throw -ExpectedMessage "ClientSecretCredential authentication failed: " } } @@ -95,7 +95,7 @@ Describe 'Connect-MgGraph In App Mode' { Describe 'Connect-MgGraph Dependency Resolution' { It 'Should load Mg module side by side with Az module.' { { Connect-AzAccount -ApplicationId $RandomClientId -CertificateThumbprint "Invalid" -Tenant "Invalid" -ErrorAction Stop } | Should -Throw -ExpectedMessage "*Could not find tenant id*" - { Connect-MgGraph -TenantId "thisdomaindoesnotexist.com" -ErrorAction Stop -UseDeviceAuthentication } | Should -Throw -ExpectedMessage "*AADSTS90002*" + { Connect-MgGraph -TenantId "thisdomaindoesnotexist.com" -ErrorAction Stop -UseDeviceAuthentication } | Should -Throw -ExpectedMessage "DeviceCodeCredential authentication failed: " } } From eeb8f23d4ad5abea62c7bc118ecc37c7e8dc3e8b Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 20:39:24 +0300 Subject: [PATCH 12/15] Rolled back to net6.0 as target framework because autorest uses net6 to build commandlets --- .../Microsoft.Graph.Authentication.Core.csproj | 4 +++- .../Authentication.Core/Utilities/AuthenticationHelpers.cs | 3 ++- .../Microsoft.Graph.Authentication.Test.csproj | 4 ++-- src/Authentication/Authentication/build-module.ps1 | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj index d5d92661462..70d68d42a8a 100644 --- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj +++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj @@ -2,9 +2,11 @@ 9.0 - netstandard2.0;net472;net8.0 + netstandard2.0;net6.0;net472 Microsoft.Graph.PowerShell.Authentication.Core 2.25.0 + + true true diff --git a/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs b/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs index bfd1ce72aee..71919594c4a 100644 --- a/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs +++ b/src/Authentication/Authentication.Core/Utilities/AuthenticationHelpers.cs @@ -60,7 +60,8 @@ private static async Task GetEnvironmentCredentialAsync(IAuthCo { if (authContext is null) throw new AuthenticationException(ErrorConstants.Message.MissingAuthContext); - + //There is need for explicitly adding TenantId to the TokenCredentialOptions for EnvironmentCredential due to stricter security requirements. + authContext.TenantId = EnvironmentVariables.TenantId; var tokenCredentialOptions = new TokenCredentialOptions { AuthorityHost = new Uri(GetAuthorityUrl(authContext)) diff --git a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj index f40643cfdb6..58a9bee7537 100644 --- a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj +++ b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj @@ -1,13 +1,13 @@ - net8.0;net472 + net6.0;net472 false 2.25.0 - + diff --git a/src/Authentication/Authentication/build-module.ps1 b/src/Authentication/Authentication/build-module.ps1 index 85edb194e06..44d580f4009 100644 --- a/src/Authentication/Authentication/build-module.ps1 +++ b/src/Authentication/Authentication/build-module.ps1 @@ -8,7 +8,7 @@ $ErrorActionPreference = 'Stop' $ModuleName = "Authentication" $ModulePrefix = "Microsoft.Graph" $netStandard = "netstandard2.0" -$netApp = "net8.0" +$netApp = "net6.0" $netFx = "net472" $copyExtensions = @('.dll', '.pdb') From 8138197352adb55c1179ba7b2fc070612e49711f Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 21:44:04 +0300 Subject: [PATCH 13/15] Rolled back to net 8 --- .azure-pipelines/common-templates/install-tools.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.azure-pipelines/common-templates/install-tools.yml b/.azure-pipelines/common-templates/install-tools.yml index 227f9471fb8..1a1d771bce8 100644 --- a/.azure-pipelines/common-templates/install-tools.yml +++ b/.azure-pipelines/common-templates/install-tools.yml @@ -5,13 +5,8 @@ steps: - task: UseDotNet@2 displayName: Use .NET SDK inputs: - version: 8.x + version: 8.x - - task: UseDotNet@2 - displayName: Use .NET SDK - inputs: - version: 9.x - - task: NuGetToolInstaller@1 displayName: Install Nuget From cc6261448063766b9a308189c4825c4da31d0b98 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 3 Feb 2025 22:42:38 +0300 Subject: [PATCH 14/15] Target net8.0 --- .../Microsoft.Graph.Authentication.Core.csproj | 4 ++-- .../Microsoft.Graph.Authentication.Test.csproj | 4 ++-- src/Authentication/Authentication/build-module.ps1 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj index 70d68d42a8a..bcce1da6292 100644 --- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj +++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj @@ -2,7 +2,7 @@ 9.0 - netstandard2.0;net6.0;net472 + netstandard2.0;net8.0;net472 Microsoft.Graph.PowerShell.Authentication.Core 2.25.0 @@ -15,7 +15,7 @@ - + diff --git a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj index 58a9bee7537..f40643cfdb6 100644 --- a/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj +++ b/src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj @@ -1,13 +1,13 @@ - net6.0;net472 + net8.0;net472 false 2.25.0 - + diff --git a/src/Authentication/Authentication/build-module.ps1 b/src/Authentication/Authentication/build-module.ps1 index 44d580f4009..85edb194e06 100644 --- a/src/Authentication/Authentication/build-module.ps1 +++ b/src/Authentication/Authentication/build-module.ps1 @@ -8,7 +8,7 @@ $ErrorActionPreference = 'Stop' $ModuleName = "Authentication" $ModulePrefix = "Microsoft.Graph" $netStandard = "netstandard2.0" -$netApp = "net6.0" +$netApp = "net8.0" $netFx = "net472" $copyExtensions = @('.dll', '.pdb') From ed65f507477601e29860b29f238bdec63f0a1c84 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 4 Feb 2025 10:39:48 +0300 Subject: [PATCH 15/15] Updated decompression flags --- src/Authentication/Authentication/Helpers/HttpHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/Authentication/Helpers/HttpHelpers.cs b/src/Authentication/Authentication/Helpers/HttpHelpers.cs index 36a12ce1f1a..e54612ba0b7 100644 --- a/src/Authentication/Authentication/Helpers/HttpHelpers.cs +++ b/src/Authentication/Authentication/Helpers/HttpHelpers.cs @@ -68,7 +68,7 @@ private static HttpClient GetGraphHttpClient(AzureIdentityAccessTokenProvider au : GraphClientFactory.Create(delegatingHandlers, finalHandler: new HttpClientHandler { AllowAutoRedirect = false, - AutomaticDecompression = DecompressionMethods.None + AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }); httpClient.Timeout = requestContext.ClientTimeout; return httpClient;