dotnet / dotnet/aspnetcore

[Blazor] Forbidden page for AuthorizeView

Open
#63,569 0 comments 3 reactions 1 assignee Assigned to @Copilot View on GitHub
area-blazor copilot-candidate
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

The same way we have a NotFound page that plays well with SSR, we should have a Forbidden page that plays well for 403 requests.

Currently on Blazor apps you rely on AuthorizeView and the `NotAuthorized` fragment, but that only works when authorization happens at the Blazor level and not when it is triggered from the AuthorizationMiddleware.

We want to have a page so that we can provide a consistent experience across SSR and interactive render modes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.