OTPByHTTPValve
Valve for delivering one-time passwords by HTTP, using configured http method.
Supports GET/POST/PUT.
Supports multiple failover URLs.
Properties
Example Configuration
{
"name": "OTPByHTTPValve",
"config": {
"url_list":"https://www.messageservice.dd,https://www.messageservice.ff",
"generated_otp_name" : "generated_otp",
"userid_param_name":"{{request.User-Name}}",
"recipient_param_name":"{{item.mobile}}",
"remove_leading_plus":"true",
"connection_timeout":"5000",
"http_method":"POST",
"success_string":"OK",
"content_type" : "application/x-www-form-urlencoded",
"auth_username" : "myaccountid",
"auth_password" : "myaccuntpassword",
"wash_recipient_number" : "true",
"recipient_prefix" : "+46",
"parameters":{
"username":"myusername",
"password":"{enc}FX2SBBwGjfPcUpqhhDQeua1Gj0DZ+1BTF5ev68QC8TM=",
"msisdn":"$$RECIPIENT",
"message":"Your+otp+is:+$$OTP",
"flash":"true",
"originator":"MyCompany"
}
}
}
In the example above the value for attribute mobile 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, parameters and success_string should be retrieved from the supplier of the message service.
Requirements
Item set must have at least one entry.