Setting up two different applications in AD B2C

Prashant N 6 Reputation points
2021-11-12T07:37:42.793+00:00

Hi

We have two applications - APP1 and APP2 and both the application will talk to single AD B2C tenant

APP1 and APP2 users will be part of the same tenant.

Login Flow - If the request is coming from APP1 - then AD B2C hosted login page should show APP1 logo on the Login page

If the request is coming from APP2 - then AD B2C hosted login page should show APP2 logo on the Login page

Another requirement is - Forgot Password - Link will be provided on the respective app login page and email to be sent out after the password is changed

Can you guide or share the link how these flows can be built in AD B2C.

Regards,
Prashant

Microsoft Security Microsoft Entra Microsoft Entra External ID
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,721 Reputation points
    2021-11-16T10:06:18.017+00:00

    Hello @Prashant N ,

    Thanks for reaching out.

    This is only possible if you create two different user flows and configure the apps to use different flows, so that if the request comes from APP1, the AD B2C hosted login page should display the APP1. Similarly, if the request comes from APP2, the AD B2C hosted login page should display the APP2 login page.

    If you wish to use custom policies, then you can leverage dynamic page customization and just use one policy for sign-in for both application. For more information, see Configure the UI with dynamic content by using custom policies.

    For forgot password link, just have the authentication library to execute that policy/user flow from your website same as launching sign in policy, just substitute the policy id. For more information, see.

    Please let me know if you have any further questions. Thank you for your time and patience with this matter.

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.