Azure / azure-functions-openapi-extension

This extension provides an Azure Functions app with Open API capability for better discoverability to consuming parties

Home Page:https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.OpenApi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOpenApiHttpTriggerAuthorization requires IHttpRequestDataObject but function has HttpRequestData

GilShalit opened this issue · comments

The IOpenApiHttpTriggerAuthorization includes the following task:

public virtual async Task<OpenApiAuthorizationResult> AuthorizeAsync(IHttpRequestDataObject req)

So how can I call it from an isolated .net7+ Azure Http trigger function if I only have an HttpRequestData object?

I must be missing something about the use of AuthorizeAsync(). Can someone post a sample integration into an Azure function?

Thanks!