Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Id Web to 3.6.2 #807

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,6 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
dotnet-version: 9.x
- name: Build
run: dotnet build buildAllSlns.proj
2 changes: 1 addition & 1 deletion 1-WebApp-OIDC/1-1-MyOrg/WebApp-OpenIDConnect-DotNet.csproj
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion 1-WebApp-OIDC/1-5-B2C/WebApp-OpenIDConnect-DotNet.csproj
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClientBeta" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClientBeta" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -21,8 +21,8 @@
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="7.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.6.2" />
</ItemGroup>


Original file line number Diff line number Diff line change
@@ -18,8 +18,8 @@
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="3.6.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -18,8 +18,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.6.2" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions 2-WebApp-graph-user/2-5-HybridFlow/2-5-HybridFlow.csproj
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions 2-WebApp-graph-user/2-6-BFF-Proxy/CallGraphBFF.csproj
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="7.0.5" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
</ItemGroup>

<ItemGroup>
2 changes: 1 addition & 1 deletion 3-WebApp-multi-APIs/WebApp-OpenIDConnect-DotNet.csproj
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@

<ItemGroup>
<PackageReference Include="Azure.Storage.Blobs" Version="12.21.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

4 changes: 2 additions & 2 deletions 4-WebApp-your-API/4-1-MyOrg/Client/TodoListClient.csproj
Original file line number Diff line number Diff line change
@@ -22,8 +22,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="3.6.2" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion 4-WebApp-your-API/4-2-B2C/Client/TodoListClient.csproj
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>

Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="3.6.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.6.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Original file line number Diff line number Diff line change
@@ -14,8 +14,8 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.1" Condition="'$(Configuration)' == 'Debug'" />
</ItemGroup>
4 changes: 2 additions & 2 deletions 5-WebApp-AuthZ/5-1-Roles/WebApp-OpenIDConnect-DotNet.csproj
Original file line number Diff line number Diff line change
@@ -17,8 +17,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="3.6.2" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions 5-WebApp-AuthZ/5-2-Groups/WebApp-OpenIDConnect-DotNet.csproj
Original file line number Diff line number Diff line change
@@ -19,8 +19,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.0.0" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="3.6.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.6.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>


Unchanged files with check annotations Beta

options.Cookie.IsEssential = true;
});
var initialScopes = builder.Configuration.GetSection("DownstreamApi:Scopes")

Check warning on line 14 in 2-WebApp-graph-user/2-5-HybridFlow/Program.cs

GitHub Actions / build

Dereference of a possibly null reference.

Check warning on line 14 in 2-WebApp-graph-user/2-5-HybridFlow/Program.cs

GitHub Actions / build

Dereference of a possibly null reference.
.Value
.Split(' ');
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>

Check warning on line 54 in 2-WebApp-graph-user/2-5-HybridFlow/Program.cs

GitHub Actions / build

Suggest using top level route registrations instead of UseEndpoints (https://aka.ms/aspnet/analyzers)

Check warning on line 54 in 2-WebApp-graph-user/2-5-HybridFlow/Program.cs

GitHub Actions / build

Suggest using top level route registrations instead of UseEndpoints (https://aka.ms/aspnet/analyzers)
{
endpoints.MapControllerRoute(
name: "default",
(function () {
const scopes =
@{
var apiScopes = Configuration["DownstreamApi:Scopes"].Split(' ');

Check warning on line 138 in 2-WebApp-graph-user/2-5-HybridFlow/Views/Shared/_Layout.cshtml

GitHub Actions / build

Dereference of a possibly null reference.

Check warning on line 138 in 2-WebApp-graph-user/2-5-HybridFlow/Views/Shared/_Layout.cshtml

GitHub Actions / build

Dereference of a possibly null reference.
@Html.Raw("[");
foreach(var scope in apiScopes) {
catch (MsalUiRequiredException ex)
{
_tokenAcquisition.ReplyForbiddenWithWwwAuthenticateHeader(_graphScopes, ex);
throw ex;

Check warning on line 255 in 4-WebApp-your-API/4-3-AnyOrg/TodoListService/Controllers/TodoListController.cs

GitHub Actions / build

Re-throwing caught exception changes stack information (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2200)

Check warning on line 255 in 4-WebApp-your-API/4-3-AnyOrg/TodoListService/Controllers/TodoListController.cs

GitHub Actions / build

Re-throwing caught exception changes stack information (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2200)
}
}
try
{
// Request to get groups and directory roles that the user is a direct member of.
var memberPage = await graphClient.Me.GetMemberGroups.PostAsync(new GetMemberGroupsPostRequestBody() { SecurityEnabledOnly = false});

Check warning on line 137 in 5-WebApp-AuthZ/5-2-Groups/Services/GraphHelper.cs

GitHub Actions / build

'GetMemberGroupsRequestBuilder.PostAsync(GetMemberGroupsPostRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)' is obsolete: 'This method is obsolete. Use PostAsGetMemberGroupsPostResponseAsync instead.'
allgroups = memberPage.Value.ToList<string>();
if (allgroups?.Count > 0)