Azure / azure-functions-durable-extension

Durable Task Framework extension for Azure Functions
MIT License
713 stars 268 forks source link

Enable External Durable Client Managed Identity Support #2856

Closed nytian closed 3 months ago

nytian commented 3 months ago

As titled.

When external durable client is used, it will use the StandardConnectionInfoProvider instead of WebJobsConnectionInfoProvider. This PR updates the Resolve() at StandardConnectionInfoProvider so that it can read the configuration required for identity based authentication.

Also, when using an external durable client within a Functions app (but not within a Durable Functions app), AzureWebJobsStorageconfiguration is required by Functions Host. To achieve this, the resolution process includes logic to first check the connection name with the AzureWebJobs prefix and then verify the standard connection name.

End-to-end test have been made with asp net core app and functions app at samples dir.

Pull request checklist