question

Max-4925 avatar image
0 Votes"
Max-4925 asked ·

Error when using custom policies to prevent duplicate emails

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


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 ·

@Max-4925 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://docs.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.







capture.jpg (52.1 KiB)
·
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.