Skip to content

Authorization policies and requirements

Ieuan Walker edited this page Dec 3, 2025 · 2 revisions

This extension method automatically documents the authorization policies and their requirements. It appends those details to the end of the API’s description field.

image
builder.Services.AddOpenApi(options =>
{
    options.AddAuthorizationPoliciesAndRequirements();
});

Clone this wiki locally