User Identity Verification
Verify the identity of users
Last updated
Verify the identity of users
Last updated
Identity verification allows the chatbot to verify that your users are not being impersonated. It ensures that conversations are private and all user metadata is verified before being put to use.
Identity verification makes use of a shared secret that is known to the chatbot and your server. Using this shared secret we generate a hash of the user metadata json. When the chatbot is started this user hash is verified with the shared secret and if the hash matches our computed hash we add the user metadata into the chatbot flow context.
After verification the user metadata is available to use throughout the flow.
To use identity verification there are two components:
Identity Verification in Conversation Flow
Identity Hash Generation
Get started by going to your greet flow and adding the Identity Verification module.
In the Identity Verification module settings set the shared secret value. (This shared secret is what you will be using on your server for hash generation)
The identity verification module will use the shared secret and generate the hash of the incoming data and compare that with the hash that you provide.
If the values match the user metadata will become available in the flow context.
To use identity verification you will need to pass in browser_userHash variable when you invoke the chatbot.
Identity Verification works by using a server side generated HMAC (hash based message authentication code), using SHA256, on either the user’s metadata.
Note: Metadata keys should be sorted when generating the HMAC
Here is an example of how to invoke the chatbot with the metadata.