Azure / Azure/azure-functions-openapi-extension
IOpenApiHttpTriggerAuthorization requires IHttpRequestDataObject but function has HttpRequestData
- Dominant language
- C#
- Stars
- 388
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
The IOpenApiHttpTriggerAuthorization includes the following task:
```
public virtual async Task 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!
Contributor guide
Research direction
Start by reading IOpenApiHttpTriggerAuthorization.AuthorizeAsync and comparing its IHttpRequestDataObject parameter with the HttpRequestData available in an isolated .NET 7+ Azure HTTP trigger. Find the appropriate integration point or example, then document a working Azure Function sample showing how authorization is invoked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- api, authorization, cloud
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100