SMA allows OTP to be delivered through SMS along with the Email. SMS authentication is supported on Active Directory, AD-Advanced, LDAP, and Local Authentication servers. All the SMS Gateways that support HTTP/REST APIs are supported.
In the AMC, navigate to System Configuration > Services > SMS > Configure.
In the Provider drop-down, select the SMS gateway provider and provide account details.
If your SMS service provider is not listed, you can manually configure the options by choosing Manual option from the Provider list. Refer the HTTP/API/developer guide provided by your SMS Gateway to configure manually.
Configuration Procedure
Select GET/POST/PUT method based on the Gateway API guide.
GET method:
In place of actual message, use the placeholder key {message}
Example: If the URL endpoint provided by your gateway is:
Configure it as
https://api.smsgateway.com/sendsms.php?user=test&password=Pass&recipient={to}&text={message}
POST/PUT method:
In place of actual message, use the placeholder key {message}
Example: If the URL endpoint provided by your gateway is
https://api.smsgateway.com/sendsms.php
with content type as application/x-www-form-urlencoded and body as user=test&password=Pass&recipient=33781723&text=This%20is%20a%20test%20message
Configure it as:
Enter Body as user=test&password=Pass&recipient={to}&text={message}
In case of JSON content type, if original content to be sent is,
{
"user": "test",
"password": "Pass",
"text": "This is a test message",
"recipient": ["9239183"]
}
Provide replaced content as below
{
"user": "test",
"password": "Pass",
"text": "{message}",
"recipient": ["{to}"]
}
In case of XML content type, if original content to be sent is,
<message>
<user>test</user>
<password>Pass</password>
<text>This is a test message</text>
<recipient>9239183</recipient>
</message>
Provide replaced content as below:
<message>
<user>test</user>
<password>Pass</password>
<text>{message}</text>
<recipient>{to}/recipient>
</message>
Configure Verification settings to identify whether SMS gateway has accepted the message for submission. By default the HTTP status response code is considered for validation - all response status code between 200 and 299 is considered successful submission.
To change this behavior:
Click Send text message.
The text message is delivered to the entered phone number.
Click Save.
Once you have configured the SMS authentication, enable the SMS services in the authentication service to log in to the SMA using OTP. For more details, refer to the respective authentication server section in this guide.