blob: 4628b93665d003207f94966c2df6dd462a300a1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
module API
class Integrations
module Slack
class Events
class UrlVerification
# When the GitLab Slack app is first configured to receive Slack events,
# Slack will issue a special request to the endpoint and expect it to respond
# with the `challenge` param.
#
# This must be done in-request, rather than on a queue.
#
# See https://api.slack.com/apis/connections/events-api.
def self.call(params)
{ challenge: params[:challenge] }
end
end
end
end
end
end
|