dark-loop / functions-authorize

An ASP.NET Core based authentication and authorization middleware for HTTP triggered Azure Functions (In-Proc and Isolated)
Apache License 2.0
37 stars 4 forks source link

v4 preview is not handling when scheme is not specified in IAuthorizeData #36

Closed artmasa closed 6 months ago

artmasa commented 6 months ago

When specifying a function with:

[FunctionName("MyFunction")]
[FunctionAuthorize] //no scheme identified and it should remain this way
public Task<IActionResult> Run([HttpTrigger("get")] HttpRequest)
{
  // ...
}

The changes introduce to v4 preview prevent from evaluator to consider a policy as no scheme is specified. Authorization always fails

artmasa commented 6 months ago

Fix is in for this issue