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

TokenSource parameter in not available in DurableHttpRequest constructor in Azure Durable function in Isolated mode #2948

Open
vibhu12345 opened this issue Oct 22, 2024 · 2 comments
Labels

Comments

@vibhu12345
Copy link

The class DurableHTTPRequest does not support managed identity token source when using Azure Durable function in Isolated mode.
https://github.com/Azure/azure-functions-durable-extension/blob/dev/src/Worker.Extensions.DurableTask/HTTP/DurableHttpRequest.cs

But it is supported in in-process mode.
https://github.com/Azure/azure-functions-durable-extension/blob/4714ad1b0f4534a28d37a6871847543b8d43abc8/src/WebJobs.Extensions.DurableTask/DurableHttpRequest.cs

Please provide the solution for the same. If Isolated mode has lesser features than In-Process why is it recommended to upgrade it?

@cgillum
Copy link
Member

cgillum commented Oct 22, 2024

Apologies for this. It seems that there's a functionality gap for the Durable HTTP feature between .NET in-proc and .NET Isolated. Things like the HTTP 202 polling and TokenSource integration have not yet been ported to .NET Isolated. This is something we plan to fix in the coming months. We can use this issue to track progress.

FYI @lilyjma

@dmunch
Copy link

dmunch commented Oct 28, 2024

Just been running into this as well - It's very unfortunate that this isn't clearly stated in the "Consuming HTTP Apis" documentation.

Anyone got an idea what's the best way to work around this until this is fixed? While I'm able to specify a custom authorization header, I'm not quite sure yet how to obtain the actual token. Having an activity to obtain the token seems wrong, as the token would be persisted.

Edit: I've been focused on missing the tokenSource for isolated functions, but re-reading this thread I realise that even HTTP 202 polling is not supported yet (Again, unfortunate that it's not clearly stated in the docs). My workaround will thus be implementing this myself in activities.

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

No branches or pull requests

3 participants