Closed iamkarlson closed 3 years ago
@iamkarlson Thank you for your query. We will have this reviewed and update the thread.
@iamkarlson The "GenerateOtp" and "SendOtp" Technical profiles can only be used as validation technical profiles under display controls as shown below and can't be used in orchestration step under user journey.
<DisplayControl Id="emailVerificationControl" UserInterfaceControlType="VerificationControl">
<DisplayClaims>
<DisplayClaim ClaimTypeReferenceId="email" Required="true" />
<DisplayClaim ClaimTypeReferenceId="verificationCode" ControlClaimType="VerificationCode" Required="true" />
</DisplayClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="email" />
</OutputClaims>
<Actions>
<Action Id="SendCode">
<ValidationClaimsExchange>
<ValidationClaimsExchangeTechnicalProfile TechnicalProfileReferenceId="GenerateOtp" />
<ValidationClaimsExchangeTechnicalProfile TechnicalProfileReferenceId="SendOtp" />
</ValidationClaimsExchange>
</Action>
<Action Id="VerifyCode">
<ValidationClaimsExchange>
<ValidationClaimsExchangeTechnicalProfile TechnicalProfileReferenceId="VerifyOtp" />
</ValidationClaimsExchange>
</Action>
</Actions>
</DisplayControl>
</DisplayControls>
For more information, please refer to below docs: https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-email-sendgrid https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-email-mailjet
Hi, I copied technical profiles examples to my policy and it fails into the error:
Unable to cast object of type 'Web.TPEngine.Providers.OneTimePasswordProtocolProvider' to type 'Web.TPEngine.Providers.IProtocolProvider'.
UserJourney used:
However, if I'm using it as a validation profile of another profile - it doesn't generate a code. Otp claim is empty.
This is an example of the UserJourney:
CorrelationId for this event is
576334b2-5432-4498-9033-567617514196
.For both cases I used the same example from the docs:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.