Closed aercolino closed 4 years ago
Hi @aercolino The secret key is supposed to be used per account (customer) not per event. The secretkey field in the event tab is for legacy support will be removed soon (there will be just one secret key to be set in customer tab). Please let us know if you need to have multiple secret keys (different keys for different events).
The secretkey field in the event tab is for legacy support will be removed soon
Thanks for sharing it.
We assumed the opposite, that Queue-it's customers had had such a need in the past, and that's why the secret key field was in the event tab in the first place. In fact, years ago we developed our implementation of Known User V2 around that assumption, allowing different keys for different events.
I just found out that using different keys for different events is the expected configuration, not quite legacy yet.
In the Queue-it /Account /Settings /Integration /KnownUser secret key section, I read:
This is the default secret key... This default key can be overwritten by specifying new KnownUser secret keys on individual event settings.
A
secretKey
is currently passed toKnownUser.validateRequestByIntegrationConfig
as a simple String.That's a problem because
KnownUser.validateRequestByIntegrationConfig
is designed to work at once on all the published integrations,queueitToken
is valid o not,secretKey
it gets must work for all the events it manages,If the type was instead a Map: eventId => secretKey, it would work great.