Authenticate by SMS

Asked

Viewed 1,933 times

-2

I would like to know how I can authenticate a registration by sending SMS to the user’s mobile number? And which companies provide this service.

2 answers

2


This is very relative, you can do it yourself. Follows a flow:

  1. User registers the mobile number.
  2. Server receives the registration and sends the sms with the token to the device.
  3. The device reads the Received SMS, extracts the token and sends it to the authentication service. (Sending to server to perform a validation on top of received token).

How can we do this?

Options:

1. You can implement SMS sending on your server.

It will be necessary to use a microcontroller such as Arduin and a GSM+ network module a GSM chip with credits. (In Brazil, you can use carrier plans that work with unlimited SMS for a fixed amount).

Tutorial for sending SMS with Arduino: https://www.arduino.cc/en/Tutorial/GSMExamplesSendSMS

After that, you will have to integrate your Service (Webservice with Arduino), so send the messages to the registered devices.

2. You can integrate your server to use some SMS sending service. ex provided by @Renatotavares with some additions:

  1. www.bulksms.com
  2. www.clickatell.com
  3. www.twilio.com
  4. http://www.solutionsinfini.com/clients.php
  5. http://enterprise.smsgupshup.com/
  6. http://www.vfirst.com/

Link with a tutorial on how to do this you are wanting, hiring some company to send the SMS: http://www.androidhive.info/2015/08/android-adding-sms-verification-like-whatsapp-part-1/

Obs: In both cases, a Webservice will be required for the device to communicate with the server, causing the SMS with the token to be sent.

1

I created a software in python that communicates with 3G modems and send SMS. It was very quiet, I suffered a lot to find a good modem, but the software was easy. But paid companies have:

  • www.bulksms.com
  • www.clickatell.com
  • www.twilio.com

Browser other questions tagged

You are not signed in. Login or sign up in order to post.