OpenApiOperation.Security Property

Definition

A declaration of which security mechanisms can be used for this operation. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.

public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiSecurityRequirement> Security { get; set; }
member this.Security : System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiSecurityRequirement> with get, set
Public Property Security As IList(Of OpenApiSecurityRequirement)

Property Value

Applies to