How would you utlise B2C Custom Policies with Durable Functions

Rav 21 Reputation points


Is there a way to utilise B2C custom policies with durable functions? Durable functions would return a result set with a statuscheck endpoint. Can B2C implement long polling? or adjust the timeout of the API call within B2C as the durable function could take longer then 30 seconds. It's almost like having a processing page where the polling is taking place. How would we implement a policy for this? Would it require a further step in the policy? Also, the Durable function endpoint would need to be exposed via APIM.

Thanks in advance

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,699 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,550 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 22,651 Reputation points Microsoft Employee

    Hi @Rav ,

    Thanks for reaching out.

    It is not possible to implement polling in Azure AD B2C custom policy.

    However, the decision to allow user to wait long during sign/sign in is bad user experience and create lot of challenges when user abort/close the session.

    A better approach would be to let the user sign-up/sign-in to the application and execute whatever is needed on the application side before giving the user final access.

    Hope this will help.



    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments

0 additional answers

Sort by: Most helpful