samples icon indicating copy to clipboard operation
samples copied to clipboard

custom email verifcation displaycontrol with sendgrid not working.

Open Jeweetog opened this issue 1 year ago • 0 comments
trafficstars

Hi,

Im trying to implement the custom email template as part of MFA with OTP code via sendgrid. But the custom policies isn't working. Im expecting to get the email verification control after athentication. But what happens is, is that I get an OTP right after authentication, and then an error witih correlationID. This is the message in app insights:

Exception Message:A partner claim with id 'identifier' is not found however is required in technical profile 'GenerateOtp' in policy 'B2C_1A_DisplayControl_sendgrid_Signin' of tenant 'omitted.onmicrosoft.com'., Exception Type:InvalidReferenceException, CorrelationID:e79515c9-e8bf-47e8-bd19-d782e6b65117

Here are my 4 xml files inside this txt file. I was unable to get the xml code prettified using the code marker icon:

custom policies 4 xml files combined.txt

I was able to get ride of this error but I dont recall exactly how, but then I got another one which was this one:

Exception Message:A partner claim with id 'otpToVerify' is not found however is required in technical profile 'VerifyOtp' in policy 'B2C_1A_DisplayControl_sendgrid_Signin' of tenant 'omitted.onmicrosoft.com'., Exception Type:InvalidReferenceException, CorrelationID:ca66086d-669c-4fc5-81c1-90021e2fd8b7

I'm guessing its a bug, or the sample is out of date. If not, what am I missing here?

Jeweetog avatar Oct 31 '24 09:10 Jeweetog