documentRequirementsForAuthorizer method Null safety
- APIDocumentContext context,
- Authorizer authorizer,
- {List<
AuthScope> ? scopes}
Provide APISecurityRequirement
s 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,
}) =>
[];