Skip to content

Warn when [Authorize] is overridden on SignalR Hubs, Razor Pages, and Razor Components #56435

Open
@halter73

Description

@halter73

It would be nice to expand analyzer warning ASP0026, "[Authorize] overridden by [AllowAnonymous] from farther away", to apply not only to MVC Controllers and Actions, but also to SignalR Hubs (and Hub methods), Razor Pages, and Razor Components.

#56244 introduced this analyzer for MVC Controllers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerIndicates an issue which is related to analyzer experiencearea-authIncludes: Authn, Authz, OAuth, OIDC, BearerenhancementThis issue represents an ask for new feature or an enhancement to an existing one

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions