Show input textbox upon response from rest api in sign up policy - azure-ad-b2c

I have 5 fields visible to the user in my signup form. Once the user fills all the fields and click on signup, we will be calling a rest api and the response will return a true/false value.
If the response variable returns true, we need to show a 6th field and make it mandatory for the user to be able to successfully finish the signup.
Is it possible to achieve this workflow in Azure AD B2C Signup Policy?
Thanks

Related

Docusign API - Update from email and identity

I would like to change the sender (from : ...) email and identity for each envelope with the api in php.
Without change the account user email and identity.
Is it possible ?
If it's not possible, i have also try with creating a new admin user and change the user_id in the api client. But i can't get the access token only changing the user id. Is it normal ?
The "From" field is entirely dependant on the user that makes the API call to send the envelope - the only way to control it is to change the user that is authenticating and sending the API call.

Adding multiple unique attribute in the custom policy

Is there any way to add the phone number + email address to be unique in the custom field while signup the page for example +911234567890 sample#gmail.com the combination of this two is always unique in the b2c.
You can implement the check with a custom Validation Technical profile based on a RESTful TP (i.e an Azure Function). You can pass the phone number and the email as input claims, query the Microsoft Graph API and if you find a user with that phone number and that email you should return a 409 Conflict response (so the user journey can't proceed). A 200 OK otherwise.

how to auto fill the power-form fields in docusign

I am doing the docusign integration with my application.
I have a powerform in my demo account which is opened every time a user request to sign a contract. When the user opened the powerform there are about 12 fields he have to fill. except the email field which is autofill by the docusign.
Now i want the functionality that if a user opened that powerform he already have the options which he filled during the signup process.
Like first name last name phone no. Can i do this from api? i have searched the api but did not succeeded.
P.S : right now i am opening the form by the powerform url. It redirects the user to that powerform to open and fill it. Email is automatically being filled but not the name and other fields.
You cannot mix Powerform and API, API cannot fill document triggered from Powerform. It better to use API if you want to do proper integration with DocuSign. But if you want to do integration with Powerform then you can send the values of the DS label added in your document by doing below:
If you DS Servertemplate has multiple text tabs like, PhoneNumber, Salary etc then using HTTP GET, you can populate tab value like below:
{PowerformUrl}&PhoneNumber={PhoneNumberValue}&Salary={SalaryValue}&activateonly=1
where PhoneNumberValue and SalaryValue are the values which you want to prepopulate in the document. Also if you have an HTML form for the customer to collect these values then call DS Powerform URL with signer's email and name along with the doc label values like below:
{PowerformUrl}&PhoneNumber={PhoneNumberValue}&Salary={SalaryValue}&SignerRole_UserName={SignerName}&SignerRole_Email={SignerEmail}&activateonly=1
SignerRole will the role which you added in the DS Server Template, on which you have created a Powerform.
Doing this way Powerform will automatically be triggerd from your HTML Form/Application, and intermediatery page where signer needs to add all Signer's email and name will be skipped.
More details on implementation is available here

How to Integrate one time password (OTP) option with registration form in SAP Hybris?

My requirement is to integrate one time password (OTP) for registration form with mobile number as additional field. So that at the time of registration user will receive one time password (OTP) on mobile number. By submitting correct OTP the User will get validated and confirmed for registration. How to achieve the same?
Regards,
Niraj Kumar
You need make change on registration form and register controller. First post, validate form and trigger sms service for OTP. Save OTP and phone number to session and show OTP field on register form. In second post validate form OTP with session OTP.

DocuSign : Different Account Id formats in account information api and webhook notification?

We are using OAuth2 to authenticate the users to DocuSign, after the authentication we use the AccountsApi call to get account information to get the account id of the logged in user. This is in the form of "ecsddfbfa5-13d2-4e8e-c49e-a214r166b987", so we save this login information. Now, when we receive the webhook notification on completion of an envelope, we get the account id as part of the custom fields and this is in the form of "7657898" (numeric). The issue is that we can't map the notifications with the user that initiated the signing.
One way of ensuring the account ID that you get from DS event notification is the same as the one that was used to login is to do a GET /v2/accounts/{numericAccountId} and compare its response.accountIdGuid with the one you got at login-time (most-likely from GET /oauth/userinfo).
See https://docs.docusign.com/esign/restapi/Accounts/Accounts/get/

Resources