Skip to content

Commit

Permalink
sign-in-null-bug-fix (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenRichards1 authored Jan 14, 2025
1 parent 14f812f commit 9ad84c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion web-app-aspnet/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<footer class="border-top footer text-muted">
<div class="container">
&copy; 2022 - sign_in_webapp - <a asp-area="" asp-page="/Privacy">Privacy</a>
&copy; sign_in_webapp - <a asp-area="" asp-page="/Privacy">Privacy</a>
</div>
</footer>

Expand Down
3 changes: 1 addition & 2 deletions web-app-aspnet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

// <ms_docref_add_msal>
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
IEnumerable<string>? initialScopes = builder.Configuration["DownstreamApi:Scopes"]?.Split(' ');

IEnumerable<string>? initialScopes = builder.Configuration.GetSection("DownstreamApi:Scopes").Get<IEnumerable<string>>();

builder.Services.AddMicrosoftIdentityWebAppAuthentication(builder.Configuration, "AzureAd")
.EnableTokenAcquisitionToCallDownstreamApi(initialScopes)
Expand Down
6 changes: 3 additions & 3 deletions web-app-aspnet/WebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<RootNamespace>sign_in_webapp</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Identity.Web" Version="3.1.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.1.0" />
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="2.20.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="3.5.0" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="3.5.0" />
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="3.5.0" />
</ItemGroup>
</Project>

0 comments on commit 9ad84c9

Please sign in to comment.