Module: Zavudev::Models::SenderCreateParams::WebhookSignatureVersion
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/zavudev/models/sender_create_params.rb,
sig/zavudev/models/sender_create_params.rbs
Overview
Which X-Zavu-Signature scheme this receiver is sent.
v1:v1=HMAC_SHA256(secret, body). The scheme used before this was configurable. Existing webhooks stay on it until you move them.v2:v2=HMAC_SHA256(secret, "{t}.{body}"). The current scheme, and the default for new senders. It signs the timestamp together with the body.v1+v2: both signatures, sharing onet. The migration setting: a receiver reading either one works, so you can deploy and confirm your new verifier before switching over.
Moving from v1 straight to v2 returns 400. Set v1+v2 first. See
https://docs.zavu.dev/guides/receiving-messages/signature-migration
Constant Summary collapse
- V1 =
:v1- V1_V2 =
:"v1+v2"- V2 =
:v2
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/zavudev/models/sender_create_params.rb', line 157
|
Instance Method Details
#self?.values ⇒ ::Array[Zavudev::Models::SenderCreateParams::webhook_signature_version]
115 |
# File 'sig/zavudev/models/sender_create_params.rbs', line 115
def self?.values: -> ::Array[Zavudev::Models::SenderCreateParams::webhook_signature_version]
|