Skip to content

Commit 31b2024

Browse files
Updating docs
1 parent 36e1114 commit 31b2024

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj

+8-6
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@
44
<LangVersion>9.0</LangVersion>
55
<TargetFrameworks>netstandard2.0;net8.0;net472</TargetFrameworks>
66
<RootNamespace>Microsoft.Graph.PowerShell.Authentication.Core</RootNamespace>
7-
<Version>2.18.0</Version>
7+
<Version>2.25.0</Version>
8+
<!-- Suppress .NET Target Framework Moniker (TFM) Support Build Warnings -->
9+
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
810
</PropertyGroup>
911
<PropertyGroup>
1012
<EnableNETAnalyzers>true</EnableNETAnalyzers>
1113
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1214
</PropertyGroup>
1315
<ItemGroup>
1416
<PackageReference Include="Azure.Core.Experimental" Version="0.1.0-preview.34" />
15-
<PackageReference Include="Azure.Identity" Version="1.13.0-beta.1" />
16-
<PackageReference Include="Azure.Identity.Broker" Version="1.2.0-beta.1" />
17-
<PackageReference Include="Microsoft.Graph.Core" Version="3.1.14" />
18-
<PackageReference Include="Microsoft.Identity.Client" Version="4.62.0" />
19-
<PackageReference Include="Microsoft.Identity.Client.Broker" Version="4.62.0" />
17+
<PackageReference Include="Azure.Identity" Version="1.13.2" />
18+
<PackageReference Include="Azure.Identity.Broker" Version="1.2.0" />
19+
<PackageReference Include="Microsoft.Graph.Core" Version="3.2.2" />
20+
<PackageReference Include="Microsoft.Identity.Client" Version="4.67.2" />
21+
<PackageReference Include="Microsoft.Identity.Client.Broker" Version="4.67.2" />
2022
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2123
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2224
</ItemGroup>

src/Authentication/Authentication/Helpers/HttpHelpers.cs

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ private static HttpClient GetGraphHttpClient(AzureIdentityAccessTokenProvider au
5454
new NationalCloudHandler(),
5555
new ODataQueryOptionsHandler(),
5656
new HttpVersionHandler(),
57-
new CompressionHandler(),
5857
new RetryHandler(new RetryHandlerOption{
5958
Delay = requestContext.RetryDelay,
6059
MaxRetry = requestContext.MaxRetry,

src/Authentication/Authentication/test/Connect-MgGraph.Tests.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Describe 'Connect-MgGraph In Environment Variable Mode' {
7777
$Env:AZURE_CLIENT_SECRET = "Not_Valid"
7878
$Env:AZURE_TENANT_ID = "common"
7979
Connect-MgGraph -EnvironmentVariable -ErrorAction Stop
80-
} | Should -Throw -ExpectedMessage "*ClientSecretCredential authentication failed: AADSTS700016: Application with identifier 'Not_Valid' was not found in the directory 'Microsoft'.*"
80+
} | Should -Throw -ExpectedMessage "ClientSecretCredential authentication failed: "
8181
}
8282
}
8383

@@ -95,7 +95,7 @@ Describe 'Connect-MgGraph In App Mode' {
9595
Describe 'Connect-MgGraph Dependency Resolution' {
9696
It 'Should load Mg module side by side with Az module.' {
9797
{ Connect-AzAccount -ApplicationId $RandomClientId -CertificateThumbprint "Invalid" -Tenant "Invalid" -ErrorAction Stop } | Should -Throw -ExpectedMessage "*Could not find tenant id*"
98-
{ Connect-MgGraph -TenantId "thisdomaindoesnotexist.com" -ErrorAction Stop -UseDeviceAuthentication } | Should -Throw -ExpectedMessage "*AADSTS90002*"
98+
{ Connect-MgGraph -TenantId "thisdomaindoesnotexist.com" -ErrorAction Stop -UseDeviceAuthentication } | Should -Throw -ExpectedMessage "DeviceCodeCredential authentication failed: "
9999
}
100100
}
101101

0 commit comments

Comments
 (0)