feat: show HMAC and enforcement for identity validation for API inbox (#4807)

Display HMAC token in Settings of Inbox API and enable enforcement option. I have also adjusted the copy so that it can apply to all inbox types.

Fixes: #4804
This commit is contained in:
Simon
2022-07-07 02:47:39 +07:00
committed by GitHub
parent 3145492a26
commit 91d9584fcb
4 changed files with 27 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class Channel::Api < ApplicationRecord
include Channelable
self.table_name = 'channel_api'
EDITABLE_ATTRS = [:webhook_url, { additional_attributes: {} }].freeze
EDITABLE_ATTRS = [:webhook_url, :hmac_mandatory, { additional_attributes: {} }].freeze
has_secure_token :identifier
has_secure_token :hmac_token