question

MuhammadUsmanshaikh-5935 avatar image
0 Votes"
MuhammadUsmanshaikh-5935 asked ·

Azure AD B2C trigger on Signin/Signup Events

Hi

Want to trigger some functionality on before and after signin/signup.

share example related to this.

thanks.

@amanpreetsingh-msft

azure-ad-b2c
10 |1000 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.

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered ·

Hi @MuhammadUsmanshaikh-5935 · Thank you for reaching out.

If I understood your requirement correctly, you want to add your own business logic during signup/signin. For this purpose, you can refer to below documents:

  1. If you are using custom policy: Integrate REST API claims exchanges in your Azure AD B2C custom policy.

  2. If you are using Built-in User Flow: Add an API connector to a sign-up user flow


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 5 ·
10 |1000 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.

Hi @MuhammadUsmanshaikh-5935 · Just checking if you had a chance to go through the above answer.

0 Votes 0 ·

Hi @amanpreetsingh-msft,

yes i have go through from them but have a question here,

can you tell that. i give endpoint of my localhost will it work?

can you explain it more how it work? i am not get event hit to my web api after signin with identity provider.

Thank you.

0 Votes 0 ·
amanpreetsingh-msft avatar image amanpreetsingh-msft MuhammadUsmanshaikh-5935 ·

Hi @MuhammadUsmanshaikh-5935 · Localhost won't work as B2C will not be able to resolve that. It has to be hosted on a publicly accessible URL.

The way it works is, for example:
- During user sign-up, you can call Restful Technical Profile.
- This technical profile calls the actual web api.
- The web api can then validate if the input provided by user related to a specific attribute e.g. MembershipID, by performing the logic that you have implemented in the API to test the same.

0 Votes 0 ·

Hi @amanpreetsingh-msft,

Okay got your point, can share sample code or video related to it.

basically my follow is user signin or signup I want to call a my API that will store data into my dependent application from there, so that have to achieve from this.

Api Connector will work for it?

Share any example thank you.



0 Votes 0 ·

Hi @amanpreetsingh-msft =,

waiting for you response can share a sample of that.

Thank you.

0 Votes 0 ·