简体   繁体   中英

Sending data from my web application to call a REST API service from a B2C custom policy

The scenario is that we want to create a database registry with customer data at the same time that the user's AD B2C account is created, because of business requirements.

Right now, our application receives input from the user (name, phone, etc.), saves it into the browser local storage, enters the B2C signup process, and after returning to the application, it then writes to the database. This, of course, is not very desirable and prone to errors and confusion.

We want to make that database write as a Validation Technical Profile of the B2C signup process, and only create the B2C account if the database write is successful.

I have no problems making the actual REST call, but what is not clear to me is how to get the data from the web application for use in my technical profile.

I was hoping to get some guidance because the B2C documentation is not very clear, and pretty overwhelming.

So far this is the closest to what I need that I've found in the samples: https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/tree/master/scenarios/aadb2c-ief-rest-api-netfw-secure-basic

EDIT: for clarification, during our signup process, we collect some data BEFORE entering the B2C signup page, and this is the data that we need to send to the REST call.

EDIT2: I think this question is more related to what I'm trying to achieve, though it's still not clear to me how they're feeding the InputClaim value on the RelyingParty.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM