For more information about OTP technical profiles, see Define a one-time password technical profile. You can change the configuration of the format and the expiration of the one-time password. The VerifyOtp technical profile verifies the code associated with the email address. The GenerateOtp technical profile generates a code for the email address. Under content definitions, still within, add the following Displa圜ontrol of type VerificationControl to your policy. Return the email back to the self-asserted technical profile that has a reference to this display control. Wait for the user to provide the verificationCode claim type with the code sent to the user. Using the SendCode action, generate an OTP code and send an email with the OTP code to the user. This example display control is configured to:Ĭollect the email address claim type from the user. Urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.2Ī verification display control is used to verify the email address with a verification code that the user receives. Update the value of the personalizations.0.dynamic_template_data.subject subject line input parameter with a subject line appropriate for your organization.īelow the claims transformations within, add the following ContentDefinition to reference the version 2.1.2 data URI: ->.This email address must be verified in SendGrid under Sender Authentication with either domain authentication or Single Sender Authentication. Use a valid email address to help prevent the verification email from being marked as spam. Update the template_id InputParameter value with the ID of the SendGrid transactional template you created earlier in Create SendGrid template.Make the following updates to the claims transformation XML: For more information about JSON claims transformations, see JSON claims transformations.Īdd the following claims transformation to the element within. The values come from the InputClaims' values and the InputParameters' "Value" properties. Numbers in the dot notation imply arrays. The JSON object's structure is defined by the IDs in dot notation of the InputParameters and the TransformationClaimTypes of the InputClaims. Next, you need a claims transformation to output a JSON string claim that forms the body of the request sent to SendGrid. These claims types are necessary to generate and verify the email address using a one-time password (OTP) code. In your policy, add the following claim types to the element within. Displa圜ontrol_TrustFrameworkExtensions.xml uses TrustFrameworkExtensions.xml as its base file hence make sure to include TrustFrameworkBase.xml, TrustFrameworkLocalization.xml and TrustFrameworkExtensions.xml files from the SocialAndLocalAccounts starter pack in your policy. We recommend that you use a sample Custom email verification custom policy available on GitHub. The next steps show you how to build your custom policy XML files. You specify this ID when you add the claims transformation. Record the ID of template you created for use in a later step. Return to the Transactional Templates page by selecting the back arrow. The account!Įxpand Settings menu, and for Version Name, enter a template version. In the HTML editor, paste following HTML template or use your own. Select Blank Template and then Code Editor. To begin editing your new template, select the template that is, Verification email, then select Add Version. On the SendGrid site, open the transactional templates page and select Create a Dynamic Template.Įnter a unique template name like Verification email and then select Create. With a SendGrid account created and SendGrid API key stored in an Azure AD B2C policy key, create a SendGrid dynamic transactional template. In Secret, enter the SendGrid API key that you previously recorded. The prefix B2C_1A_ is added automatically to the name of your key. Select Policy Keys and then select Add.On the Overview page, select Identity Experience Framework.In the top-left corner of the Azure portal, choose All services, and then search for and select Azure AD B2C.If you have access to multiple tenants, select the Settings icon in the top menu to switch to your Azure AD B2C tenant from the Directories + subscriptions menu.Next, store the SendGrid API key in an Azure AD B2C policy key for your policies to reference. For more information, see Warming Up An Ip Address. When using dedicated IP addresses, you need to build your own reputation properly with an IP address warm-up. SendGrid offers customers the ability to send emails from shared IP and dedicated IP addresses.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |