documentRequirementsForAuthorizer method Null safety

List<APISecurityRequirement> documentRequirementsForAuthorizer(
  1. APIDocumentContext context,
  2. Authorizer authorizer,
  3. {List<AuthScope>? scopes}
)

Provide APISecurityRequirements for authorizer.

An Authorizer that adds security requirements to operations will invoke this method to allow this validator to define those requirements. The Authorizer must provide the context it was given to document the operations, itself and optionally a list of scopes required to pass it.

Implementation

List<APISecurityRequirement> documentRequirementsForAuthorizer(
        APIDocumentContext context, Authorizer authorizer,
        {List<AuthScope>? scopes}) =>
    [];