Skip to content

Commit

Permalink
Merge pull request #431 from kenime/master
Browse files Browse the repository at this point in the history
Added ability to disable ssl verification for Assistant node.
  • Loading branch information
chughts committed Oct 24, 2018
2 parents 7259aca + edad020 commit bd30746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/conversation/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
<li><code>msg.params.endpoint</code> : If provided will be used as the url for the Assistant service.</li>
<li><code>msg.params.version</code> : If provided will be used as the API version date for the Assistant service.</li>
<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>
<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>
</ul>
<p>See <a href="http://www.ibm.com/watson/developercloud/assistant/api/v1/#send_input" target="_blank">Assistant API documentation</a> for details.</p>
<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>
Expand Down
4 changes: 4 additions & 0 deletions services/conversation/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ module.exports = function(RED) {
serviceSettings.timeout = parseInt(msg.params.timeout);
}

if (msg.params && msg.params.disable_ssl_verification){
serviceSettings.disable_ssl_verification = true;
}

node.service = new AssistantV1(serviceSettings);
return true;
}
Expand Down

0 comments on commit bd30746

Please sign in to comment.