Identity Validation
"Identity validation in Bevatel enhances security by verifying user identities using HMAC-based authentication, ensuring privacy and preventing impersonation in conversations."
Last updated
"Identity validation in Bevatel enhances security by verifying user identities using HMAC-based authentication, ensuring privacy and preventing impersonation in conversations."
Last updated
Identity verification is an important security feature that helps ensure that conversations between customers and support agents are private and secure. By verifying the identities of both parties, identity validation helps prevent impersonation and unauthorized access.
If your users can log into your app, it's always recommended to enable identity verification. Bevatel uses an HMAC-based identity verification. It is a cryptographic algorithm that uses a secret key (provided by Bevatel) and a unique identifier to generate a code, this code can then be used to verify the user on the front end.
To generate the HMAC you need to first get the secret key for your Bevatel inbox. The key can be found in Settings > Inboxes > Settings > Configuration > Identity Validation
To use HMAC for identity validation in your web widget, you'll need to generate an HMAC using this key. You can generate this HMAC using any programming language in the backend. Most languages have built-in cryptographic functions to generate the token, if not popular implementations always exist. You can find examples of popular programming languages at the end of this page.
Once you've generated an HMAC for an identifier using the key above, you can use the HMAC to validate the identity of the sender. To do this, send the HMAC along with the identifier to your Bevatel server via the SDK.
If the HMACs match, you can be confident that the person who sent the identifier is authorized to do so. All unverified users will show up with an alert mark, stating that their identity is not verified.
You can integrate identity verification in React Native as well.
In case you want to enforce verification for all users, you can do so by enabling the Enforce User Identity Validation
option in the inbox settings.