Azure-Samples / active-directory-b2c-advanced-policies

Sample for use with Azure AD B2C with Custom Policies.
http://aka.ms/aadb2ccustom
MIT License
217 stars 143 forks source link

Clarification on claim transformation method #58

Open iballack opened 5 years ago

iballack commented 5 years ago

I saw CreateAlternativeSecurityId as claim transformation method in the official guideline. But in the code, I saw CreateUserIdentity.

May I know which one shall I use instead?

xinaxu commented 4 years ago

We are using CreateUserIdentity inside account linking policies but CreateAlternativeSecurityId also works. However, they are not interchangeable and does not work if mixed. Hence CreateAlternativeSecurityId is more preferable given it is used in more scenarios.