Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOpenApiHttpTriggerAuthorization requires IHttpRequestDataObject but function has HttpRequestData #637

Open
GilShalit opened this issue Jan 1, 2024 · 0 comments

Comments

@GilShalit
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant