Skip to content

feat: support ASP.NET policy authorization on endpoints #5

@tmeckel

Description

@tmeckel

https://learn.microsoft.com/en-us/aspnet/core/security/authorization/policies?view=aspnetcore-8.0

Must support

[Authorize(Policy = "AtLeast21")]
public class AtLeast21Controller2 : Controller
{
    [Authorize(Policy = "IdentificationValidated")]
    [Authorize(Policy = "CountryUS")]
    public IActionResult Index() => View();
}

Use vendor extension x-aspnetcore-authorize-policy (array)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions