Triggering authentication flow in Blazor

  Kiến thức lập trình

I have this on my index page in a Blazor project:

@page "/"
@attribute [AllowAnonymous]

<p>Go to the <a href="/LoggedIn"><i class="fas fa-user"></i> logged in</a> page. This triggers authentication — why?</p>

<p>Go to the <a href="/Account/Manage/Index"><i class="fas fa-user"></i> account</a> page. This doesn’t trigger authentication — why?</p>

Why does the first link trigger redirection to IdentityServer to log in, but the other just shows a white page saying Error: 404?

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT