OTPPostHTTPValve
Valve for delivering one-time passwords by HTTP POST.
Supports configurable SSL protocols and ciphers.
Properties
Example Configuration
{ "name": "OTPPostHTTPValve", "config": { "generated_otp_name" : "generated_otp", "recipient_param_name" : "{{item.othermobile}}", "userid_param_name" : "{{request.username}}", "url_list":["https://www.messageservice.dd","https://www.messageservice.ff"], "success_code":"202", "connection_timeout" : "10", "auth_username" : "myaccountid", "auth_password" : "myaccuntpassword", "ssl_protocols" :
[
"TLSv1.1
",
"TLSv1.2
"
],
"ssl_ciphers" :[ "TLS_RSA_WITH_AES_256_CBC_SHA256", "TLS_ECDH_RSA_WITH_RC4_128_SHA" ],
"wash_recipient_number" : "true", "recipient_prefix" : "+46", "headers":[ {"key":"Cache-Control", "value":"no-cache"}, {"key":"Connection", "value":"keep-alive"} ] } }
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, body and success_code should be retrieved from the supplier of the message service.
More information about cipher suites:
https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html
Requirements
Item set must have at least one entry.