Search code examples
twilioasp.net-identity

How do I set up a SMS sender for ASP.NET Identity?


I am following the instructions here to set up a SMS sender (using twilio) for ASP.NET Core Identity. I have a couple of questions:

  1. Where can I find the interface ISmsSender?
  2. Where/how do I store the secrets for the Twilio credentials? I can't find where it gives the key name for them.
  3. What do I do to have the Identity code send a text? Just to verify the user's phone number (not for 2FA)?

Solution

  • The ASP.NET Core Identity library has removed all code & web pages for using SMS for 2FA. They did so because it's not terribly effective. So the answer to any question like this is - no longer supported.