NitinAmbupe-0378 avatar image
0 Votes"
NitinAmbupe-0378 asked JamesTran-MSFT commented

AD B2C Custom Policy - separate SignUp/SignIn flow

I would like to create an AD B2C custom policy to meet the following business requirements.
Business Requirement
The product sold to customers has a unique product identification number and the customer registers an email Id while buying a product from the dealer. These customer details (product identification number, registered mail Id, and other details) are then stored in the manufactures database. The smartphone application to be developed for end customers to manage/view the health status of the product requires the customer to sign up as follows -
Step 1
The application provides an interface to input "Product Identification Code" and "Registered email ID". Upon submitting these details, the system should check if the entered "Product Identification Code" and "Registered email ID" exist in the manufacturer's database.
--> I could do this by implementing a REST API and custom email verification method to generate and send OTP to registered email ID.

Step 2
The customer enters the OTP received on the registered email Id for verification.

Step 3
Post OTP verification, customers can sign up using a local account or social account.

This step basically links customers social profile with product and create user AD B2C.

Lastly, Sign In

What I could achieve till now -

Using REST API for validating "Product Identification Code" and "Registered email ID"
Sending otp to registered email Id using sendInBlue
OTP Verification
Local account creation
Now, I want to have social account (google and facebook) option as mentioned in Step-3.

step1.jpeg (16.0 KiB)
step2.jpeg (13.6 KiB)
step3.jpeg (18.7 KiB)
step4.jpeg (17.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@amanpreetsingh-msft Could you let me know if its possible to meet our business requirement explained above ?

0 Votes 0 ·

Thank you for the detailed post and I apologize for the delayed response!

In order to get users to sign in with their social accounts (i.e. Google or Facebook), you should be able to follow our - Add an identity provider to your Azure Active Directory B2C tenant documentation. From there, you can create a custom policy to Set up sign-up and sign-in with a Google account or a Facebook account using Azure Active Directory B2C.

If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.

0 Votes 0 ·

0 Answers