Open Closed

Blazor Server - Force Authentication For Root / Entire Site (updated) #5123


User avatar
0
adam-dot-cohen created
  • ABP Framework version: v7.2.1

  • UI type: Blazor Server

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): Tiered, separate OpenIddict server

How do you force authentication for the root of a blazor server project? Presently, the following display the header and navigation side menu before redirecting to Account/Login...

Index.cshtml
image.png

OR

_Imports.razor
image.png


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    , the following display the header and navigation side menu before redirecting to Account/Login...

    If the current user is not authenticated the menu and header should be empty, right?

    If there is a problem how can I reproduce it?

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13