-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed as not planned
Closed as not planned
Copy link
Labels
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Resolved because the behavior in this issue is the intended design.Status: Resolvedarea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearerdesign-proposalThis issue represents a design proposal for a different issue, linked in the descriptionThis issue represents a design proposal for a different issue, linked in the description
Description
Summary
Currently, the AuthenticationStateProvider.GetAuthenticationStateAsync() method is invoked automatically on all pages, including those marked with [AllowAnonymous]. This leads to unnecessary token validations and refresh attempts even on pages that don't require authentication. This results in performance overhead, unwanted UI states like "Authorizing...", and possible JS interop issues during static rendering.
Proposal:
Provide a built-in way to skip or delay the GetAuthenticationStateAsync() call for anonymous pages, or allow developers to control when and where the authentication state is evaluated.
Metadata
Metadata
Assignees
Labels
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Resolved because the behavior in this issue is the intended design.Status: Resolvedarea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearerdesign-proposalThis issue represents a design proposal for a different issue, linked in the descriptionThis issue represents a design proposal for a different issue, linked in the description