OTPByHTTPPostValve
Valve for delivering one-time passwords by HTTP POST.
Supports template file body.
Properties
Example Configuration
{ "name": "OTPByHTTPPostValve", "config": { "generated_otp_name" : "generated_otp", "recipient_param_name" : "{{item.othermobile}}", "userid_param_name" : "{{request.User-Name}}",
"url_list" : "
https://www.messageservice.dd,https://www.messageservice.ff
","template_file_path":"C:\\Windows\\Temp\\template.xml", "success_string":"message_ok", "headers":"Cache-Control:no-cache|Connection:keep-alive", "content_type" : "application/x-www-form-urlencoded", "auth_username" : "myaccountid", "auth_password" : "myaccuntpassword", "wash_recipient_number" : "true", "recipient_prefix" : "+46" } }
In the example above the value for attribute othermobile has been picked up earlier in the flow.
The value for userid_param_name has been picked up from the request. Most common values are {{request.User-Name}} for RADIUS and {{request.username}} for HTTP.
Information about values for url_list and success_string should be retrieved from the supplier of the message service.
As well as the syntax for the template file.
Requirements
Item set must have at least one entry.