Skip to content

Commit bd30746

Browse files
authored
Merge pull request #431 from kenime/master
Added ability to disable ssl verification for Assistant node.
2 parents 7259aca + edad020 commit bd30746

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

services/conversation/v1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
<li><code>msg.params.endpoint</code> : If provided will be used as the url for the Assistant service.</li>
109109
<li><code>msg.params.version</code> : If provided will be used as the API version date for the Assistant service.</li>
110110
<li><code>msg.params.optout_learning</code> : Set to true to opt out of request logging. Check the <a href="https://console.bluemix.net/docs/services/watson/getting-started-logging.html#controlling-request-logging-for-watson-services" target="_blank">documentation</a> for details.</li>
111+
<li><code>msg.params.disable_ssl_verification</code> : Set to true to disable SSL verification. <b>Note that this has serious security implications - only do this if you really mean to!</b></li>
111112
</ul>
112113
<p>See <a href="http://www.ibm.com/watson/developercloud/assistant/api/v1/#send_input" target="_blank">Assistant API documentation</a> for details.</p>
113114
<p>All Results will made available at <code>msg.payload</code> in JSON format. Check the <a href="http://www.ibm.com/watson/developercloud/assistant/api/v1/#send_input" target="_blank">documentation</a> for details.</p>

services/conversation/v1.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ module.exports = function(RED) {
229229
serviceSettings.timeout = parseInt(msg.params.timeout);
230230
}
231231

232+
if (msg.params && msg.params.disable_ssl_verification){
233+
serviceSettings.disable_ssl_verification = true;
234+
}
235+
232236
node.service = new AssistantV1(serviceSettings);
233237
return true;
234238
}

0 commit comments

Comments
 (0)