FortiAuthenticator
FortiAuthenticator provides access management and single sign on.
kiri
Staff
Staff
Article Id 278207
Description This article describes how to configure FortiAuthenticator with the Twilio SMS gateway.
Scope FortiAuthenticator.
Solution
  1. Follow Twilio's docs to set up an SMS API.
    Send Messages with Messaging Services

  2. Build and get the code, in this example curl was used:

 

2023-10-10 12_07_09-Messaging _ Twilio - Brave.png

 

  1. Configure the FortiAuthenticator:

     

    2023-10-10 12_12_46-FortiAuthenticator — Mozilla Firefox.png

     

  2. For HTTPS, the CA of https://api.twilio.com/ server certificate is required.

    Use Learn Certificate to import it, then set the CA certificate to it.

    Trusted CAs 6.5.3

     

  3. Test the settings.

     

    test.png

     

     

  4. Set Twilio as the default SMS gateway:

     

    default.png

     

If the test SMS fails, check FortiAuthenticator and Twilio's logs: GUI -> Log Access -> Log Access -> Logs.

Console Twilio

 

If the SMS does not make it to the end user, but the request arrives at Twilio, a clear error message should be seen in FortiAuthenticator Logs. Follow the instructions to fix it.

 

Example:

 

SMS gateway "TWILIO2" via HTTPS POST returns status code 400 (response: {"code": 21603, "message": "A 'From' or 'MessagingServiceSid' parameter is required to send a message", "more_info": "https://www.twilio.com/docs/errors/21603", "status": 400})

 

Test the code with Postman or a similar tool.

If the request does not arrive at Twilio, check the settings, most likely FortiAuthenticator is incorrectly configured.