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:
Check against my database if entered Entity Name is valid
If valid, redirect user to Azure AD B2C for registration/signup
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.
And the redirect works (to our.umbraco.com). But it doesn't look like the last workflow (Send details to Database) 'waits' (if that even makes sense) for the 2nd workflow to complete so that the 3rd workflow can access the user details that comes after successful registration on Azure AD B2C.
I believe you have been trying to mash up several things together.
Let's separate these. First, you have your form in which you get some information. Redirection to Azure AD should be your forms success case.
Now, after user is done on Azure AD, user will get redirected back to your application. If you still need more information after this step, you should show another form while holding the data you have received from AD (I would suggest you to save this to db once you get it).
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:
Here is what I have tried in my custom workflow:
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.
I have also tried splitting the above workflow into three different (and smaller) workflows as follows:
Visually that looks like this:
My "Azure" workflow looks like below:
And the redirect works (to our.umbraco.com). But it doesn't look like the last workflow (Send details to Database) 'waits' (if that even makes sense) for the 2nd workflow to complete so that the 3rd workflow can access the user details that comes after successful registration on Azure AD B2C.
What do I do? How should I implement this flow?
Anyone with some ideas?
Hi there,
I believe you have been trying to mash up several things together.
Let's separate these. First, you have your form in which you get some information. Redirection to Azure AD should be your forms success case.
Now, after user is done on Azure AD, user will get redirected back to your application. If you still need more information after this step, you should show another form while holding the data you have received from AD (I would suggest you to save this to db once you get it).
I believe this should fix your issue.
Regards,
Mehmet
is working on a reply...