mikelax/spacebot

Add support to handle slack ssl_check API calls

Closed this issue · 1 comments

It appears that slack will from time to time send "ssl pings" to check and make sure that a given API URL is properly serving SSL requests.

The handlers should consider these a no-op, but must return an HTTP 200 response. It appears the contents of the body does not matter.

Support should be added as a lib function to the following functions:

  • /slack/messages
  • /slack/slash
  • /slack/oauth

Example of the event received in lambda function.

{ body: 'ssl_check=1', pathParams: '{}', queryParams: '{}' }

Fixed in #23