• About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post
No Result
View All Result
Digital Phablet
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
No Result
View All Result
Digital Phablet
No Result
View All Result

Home » How to Set Up Custom Email Verification with Azure Communication Services in AAD B2C

How to Set Up Custom Email Verification with Azure Communication Services in AAD B2C

DP Staff by DP Staff
September 7, 2025
in How To
Reading Time: 3 mins read
A A
How to Fix Azure Student Subscription Region Error
ADVERTISEMENT

Select Language:

If you’re using Microsoft Azure AD B2C and want to customize your password reset process by sending branded emails through your own service, here’s a simple step-by-step guide to help you set it up.

Azure AD B2C now supports integrating your own email service via APIs during password reset flows. You can still generate verification codes using B2C’s B2C built-in features, but the email sending can be hooked up to your custom service, giving you full control over the branding and delivery.

First, you’ll need to update your policy to include some new claims. These claims will store the verification code and the generated OTP. To do this, add the following claims to your extension policy:

xml


Verification Code
string
TextBox


Generated OTP
string

Next, update your self-asserted content definition (used during the password reset) to load your custom reset page. Make sure your content definition references the correct URL of your hosted reset page:

xml


https://YOUR-STATIC-WEB-APP/reset-password.html
~/common/default_page_error.html
urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.9

Now, create a display control that will manage the email verification UI. This control will handle the email input and verification code input, along with actions to send the verification code and verify it.

xml
























To generate and verify OTPs, you need to set up a ClaimsProvider with two technical profiles: one for generating the code and another for verifying it.

Here’s what the ClaimsProvider might look like:

xml


One-Time Password


Generate Code
GenerateCode
600
6
0-9
5
false









Verify Code
VerifyCode







Next, define a REST API technical profile that will send the verification email by calling your backend. Your API should accept a simple JSON payload with the email address and the code, then send the email accordingly:

xml


Send Verification Email
https://YOUR-FUNCTION.azurewebsites.net/api/SendVerificationEmail
Body
None
false






For your password reset flow, you need to override the default local account discovery step. Attach the display control you created earlier by referencing it in the displayclaims section—remember, do not use DisplayControlReferences, only DisplayClaims. This ensures the custom UI pops up during reset:

xml


Reset password using email address
api.localaccountpasswordreset

false












Finally, create a simple Azure Function or API endpoint that interacts with your email service. It should accept JSON with the structure:

json
{
“to”: “[email protected]”,
“code”: “123456”
}

The function will process and send out the email. If everything works as intended, Azure AD B2C will call your API during the password reset flow to send branded emails to your users, providing a seamless, customized experience.

ADVERTISEMENT

For more detailed guidance and sample code, you can check this walkthrough: [Link to detailed article].

Hope this helps you get started on customizing your password reset process!

ChatGPT Add us on ChatGPT Perplexity AI Add us on Perplexity Google Preferred Source
ADVERTISEMENT
DP Staff

DP Staff

Related Posts

Where to Find the Urn in Hell Is Us: Completing and Solving Tips
Gaming

Where to Find the Urn in Hell Is Us: Completing and Solving Tips

September 11, 2025
Mastering Angela: Skills, Ultimate, Tips & Tricks
Gaming

Mastering Angela: Skills, Ultimate, Tips & Tricks

September 11, 2025
World's Top 50 Most Valuable Private Companies
Infotainment

Top 50 Most Valuable Private Companies in the World

September 11, 2025
Guess The Nation With Best Mobile Connectivity In Its National Park
News

Guess The Nation With Best Mobile Connectivity In Its National Park

September 11, 2025
Next Post
office 620823 960 720.jpg

How to Connect Lantronix WiBox WBX2100E to Apple ImageWriter I

  • About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post

© 2025 Digital Phablet

No Result
View All Result
  • Home
  • News
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones

© 2025 Digital Phablet