Replies: 7 comments 5 replies
-
@HaoK I have it in Require authenticated users
But I'll plaster links to that around. |
Beta Was this translation helpful? Give feedback.
-
@HaoK I'll update my sample to use FallbackPolicy then point to that. Will that work? |
Beta Was this translation helpful? Give feedback.
-
I'm talking about razor components containing |
Beta Was this translation helpful? Give feedback.
-
In that case @Naxaliav, this is a duplicate (only for Blazor) of dotnet/AspNetCore.Docs#18181. Since @Rick-Anderson is addressing this for the broad subject in the general docs, I'll continue with the Blazor issue for Blazor docs when I get to it. Feel free to continue the discussion here because these issues are cross-linked now. Whatever discussion happens here that pertains to the Blazor WASM scenario, I'll see it later. |
Beta Was this translation helpful? Give feedback.
-
I filed an issue for this #23157 since it is not trivial to do for wasm given that we don't support allowanonymous |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi, is there any way to force all blazor pages to be authorized witouth defining Authorize attribute on each page?
Edit: I'm not talking about Server (API) side. The main goal is to avoid defining Authorize attribute on each razor component containing
@page
.Currently, the only solution I found was to import @Attribute [Authorize] into
_Imports.razor
file, but i'm not sure if that does not break any of the functionality.Beta Was this translation helpful? Give feedback.
All reactions