Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
<PackageReference Include="QuestPDF" Version="2025.4.0" />
<PackageReference Include="QuestPDF" Version="2025.12.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<PackageReference Include="Markdig" Version="0.44.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.13.1" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.13.1" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.13.2" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.13.2" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 5 additions & 1 deletion Bezalu.ProjectReporting.Web/staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
"route": "/login",
"rewrite": "/.auth/login/aad"
},
{
"route": "/manifest.webmanifest",
"allowedRoles": [ "anonymous" ]
},
{
"route": "/*",
"allowedRoles": ["authenticated"]
"allowedRoles": [ "editor" ]
Comment thread
MWG-Logan marked this conversation as resolved.
Comment thread
MWG-Logan marked this conversation as resolved.
}
Comment on lines 11 to 14
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The catch-all route "/" with "editor" role requirement will apply to all routes including API routes (/api/). This means API endpoints will also require the "editor" role, not just the web UI. If the intent is to have different authorization requirements for API routes versus the web UI, you should add explicit route configurations for /api/* routes before the catch-all route. For example:

{
  "route": "/api/*",
  "allowedRoles": ["authenticated"]
}

Otherwise, ensure that the "editor" role requirement for API access is intentional and documented.

Copilot uses AI. Check for mistakes.
Comment on lines 11 to 14
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the catch-all route now requiring "editor" role, static assets like CSS (/css/), JavaScript (/js/), icons (/icon-*.png), and favicon (/favicon.ico) will also require authentication with the "editor" role. While these are excluded from navigationFallback, they are not excluded from route authorization.

For a typical web application, these static assets should be accessible without authentication to allow the application shell to load before authentication. Consider adding explicit route entries for these static assets with anonymous access:

{
  "route": "/css/*",
  "allowedRoles": ["anonymous"]
},
{
  "route": "/js/*",
  "allowedRoles": ["anonymous"]
},
{
  "route": "/favicon.ico",
  "allowedRoles": ["anonymous"]
},
{
  "route": "/icon-*.png",
  "allowedRoles": ["anonymous"]
}

These routes should be added before the catch-all "/*" route.

Copilot uses AI. Check for mistakes.
Comment thread
MWG-Logan marked this conversation as resolved.
],
"navigationFallback": {
Expand Down
Loading