How would you utlise B2C Custom Policies with Durable Functions

Rav 21 Reputation points
2023-10-31T11:38:50.93+00:00

Hi,

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.
4,856 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,279 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 29,741 Reputation points Microsoft Employee
    2023-11-06T13:54:38.5966667+00:00

    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.

    Thanks,

    Shweta


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

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.