Messenger Portal Auto Authentication
For some of our larger partners who have a custom built portal or third party vendors looking to provide the web version of Messenger in their platform, we now offer a way to automatically authenticate Messenger with your portal. Our web based Messenger is a javascript plugin that leverages passwordless authentication by default - this means that the end customer has to type their email and receive a 6 digit pin to authenticate to raise a service request. If you have a portal that already requires authentication, you do not want the end customer to re-authenticate. In order to facilitate this, we are now providing a way to encrypt the email address on your server side and pass it into the javascript plugin. We also have the key on our side, so we can decrypt it and validate that the end user is who they say they are. This prevents a bad actor from hijacking the chat client and pretending to be someone else.If you are looking to get access to this, please email us to request a portal authentication secret. Request Portal Authentication Secret.
1
Store the secret on your server
Store the secret securely on your server side
2
Generate the HMAC hash
Securely generated hash with the secret provided by Thread Hash must be generated from the following format
hash_hmac('sha256', <email>, <secret>)3
Insert the JavaScript plugin with the hash
Insert the javascript plugin into your web client, and in the connectionKey, insert the hash that is generated. Ensure that you are also passing the connectoinEmail to match it , and that your connectionType is set the right way.