Include redirection to Azure AD B2C in the custom workflow of an Umbraco Form

I have a form that looks like this:

I want to have a custom workflow that does the following steps:

  1. Check against my database if entered Entity Name is valid
  2. If valid, redirect user to Azure AD B2C for registration/signup
  3. Collect info entered on my Umbraco Form and info from the Azure AD B2C and send to database.

Here is what I have tried in my custom workflow:

public override WorkflowExecutionStatus Execute(WorkflowExecutionContext context)
{
   try
   {
      if(EntityNameExists)
      {
         //TODO: redirect to Azure AD B2C

         //TODO: Send data from BOTH umbraco and Azure AD B2C
      }
   }
   catch (Exception)
   {
          return WorkflowExecutionStatus.Failed;
   }
   return WorkflowExecutionStatus.Completed;
}

I have completed the set up (userflow) on Azure. I am not sure what’s the best way to accomplish what I want. Please help.


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/110438-include-redirection-to-azure-ad-b2c-in-the-custom-workflow-of-an-umbraco-form