SMS Confirmations

2 phase application that generates a code for a unique identifier and sends sms. Useful for marketing campaigns or 2-factor security validations.

Disclaimer: This project represents my first steps using Golang while following the Clean Architecture (HEXA/Ports-n-Adapters) design

Phase 1 - Code generation

  1. Receives a cell phone number (msisdn) from an external client
  2. Generates a unique alfanumeric code and associates with the msisdn.
  3. Returns to the client

Phase 2 - Confirmation

  1. Receives the code generated in phase 1 and checks with the last code for the given msisdn. If matches, returns ok, else incorrect input.

Supported Notifier provider

Twillio

Requires usage of the following command-line arguments

TWILLIO_FROM_MSISDN - The registered phone number.

TWILLIO_ACCOUNT_SID - Your Account service id.

TWILLIO_AUTH_TOKEN - Authorization token.