2

I have created a custom policy to use the Authenticator App from the following example code: https://github.com/azure-ad-b2c/samples/blob/master/policies/totp/policy/TrustFrameworkExtensions_TOTP.xml

The issue I am having is that it will sign up a new user, but when it is supposed to redirect to the page to show the QR code, it fails with the following error shown in AI.

Exception Message:A Claim of ClaimType with id "totpIdentifier" was not found, which is required by the ClaimsTransformationImpl of Type "Microsoft.Cpim.Data.Transformations.FormatStringMultipleClaimsTransformation" for TransformationMethod "FormatStringMultipleClaims" referenced by the ClaimsTransformation with id "CreateUriLabel" in policy xyz

The user is created correctly, as the next login will show the QR code and after going through the process, will give me my token.

I do understand the error, but I do not know how to fix it.
My guess is that the sequence of events is not correct, but "CreateUriLabel" should be called after "TotpFactor-Input" where "totpIdentifier" gets set.

Has someone got an idea on what to look at?

366Cobra
  • 29
  • 4

1 Answers1

0

just for completion, it ended up being a branding file that was causing the issue.

366Cobra
  • 29
  • 4
  • Can you elaborate? I'm seeing the same error, though the policy seemingly worked earlier today. – mfa Feb 23 '23 at 19:25
  • we had a html file to alter the branding. use the original branding configs and check version numbers – 366Cobra Feb 25 '23 at 04:17
  • getting same error which version numbers are you taking about – momin naveed May 30 '23 at 09:42
  • this is what i use: ... urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.9 ... And make sure you allow scripting, if you use manipulate controls. Allow ... – 366Cobra May 31 '23 at 10:29