Error when using custom policies to prevent duplicate emails

Max 41 Reputation points
2020-05-20T16:50:27.807+00:00

When attempting to use the custom policy https://github.com/azure-ad-b2c/samples/tree/master/policies/account-linkage-unified I come across a couple of errors.

My version is attached:
8489-b2c-1a-accountlink-susi.xml
8494-b2c-1a-accountlink-extensions.xml
8541-b2c-1a-accountlinkandunlink.xml
8542-b2c-1a-trustframeworkbase.xml
8543-b2c-1a-trustframeworkextensions.xml

  • When attempting to sign in using local account I get an error

The application with identifier 'ProxyIdentityExperienceFrameworkAppId' was not found.

  • When attempting to login using a social provider it does not prevent duplicate emails rather it allows you to sign in using the same email as your local account.

I am new to custom policies and I am not sure what might be causing this.

Thanks in advance,
Max

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,774 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,506 Reputation points
    2020-05-20T18:29:19.24+00:00

    @Max You need to replace both instances of ProxyIdentityExperienceFrameworkAppId and IdentityExperienceFrameworkAppId in below section of your trustframeworkextensions.xml file with the actual APP ID (aka client ID) of these applications registered under app registration blade. If you have not registered these applications, please follow the steps mentioned here: https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-get-started?tabs=app-reg-preview#register-the-identityexperienceframework-application

    8507-capture.jpg

    -----------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful