SwaggerAuthorize - Jusas/NSwag.AzureFunctionsV2 GitHub Wiki
SwaggerAuthorizeAttribute
Annotation for different kinds of authorization. NOTE: Annotation only! By itself does not secure the method in any way!
Sample usage:
[SwaggerAuthorize(AuthScheme.QueryApiKey)]
[FunctionName("SwaggerAuthorizeAttribute3")]
public static async Task<IActionResult> SwaggerAuthorizeAttribute3(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)] HttpRequest req,
ILogger log)
{
return new OkResult();
}