Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 4767

SSPR: How to send OTP email by SMS gateway?

$
0
0

I'm seeking a way to send OTP email via SMS gateway so that I can have same OTP number from both email and SMS. This make sense to users who do not have OR can't use their mobile when they reset their password.

In order to do that, I need to pass email parameter to SMS gateway, unfortunately the SendSMS class has only mobileNumber and message parameters, is there a way that I could pass  email address parameter to SMS gateway too?

namespace OTPServices.FIM.SmsServiceProvider
{
    using System;
    using System.Collections.Generic;
    using Microsoft.IdentityManagement.SmsServiceProvider;
 
    public class SmsServiceProvider : ISmsServiceProvider
    {
        public void SendSms(string mobileNumber, string message, Guid requestId, Dictionary<string, object> deliveryAttributes)
        {
            OTPServices.FIM.mySMSProvider.SendSms(mobileNumber, message);
        }
    }
}


Jason


Viewing all articles
Browse latest Browse all 4767

Trending Articles