Advanced Security

Modified on Fri, 28 Oct 2022 at 01:22 PM

You can add an additional layer of Advanced security. 

You can set the chat_signature variable along with the other Javascript variables in AtomChat's code.

What is chat_signature? 

Data signature needs to be calculated from the MD5 digest of a string containing the ID, name, and API Key 
(in that order) separated by commas. Let's assume these are your variables

<?php
  $chat_id = "SUPERHERO1"; // UID
  $chat_name = "IRON MAN"; // Name
  $chat_apikey = "chat_api_key"; // API Key (from Admin Panel)
?>
PHP
Copy

You can calculate the signature using the following code:

<script>
  var chat_id = $chat_id;
  var chat_name = $chat_name;
  var chat_signature = <?php echo md5("$chat_id,$chat_name,$chat_apikey"); ?>; 
</script>
Markup
Copy


Lastly, log in to your AtomChat Admin Panel -> Settings -> Authentication. 

Enable the security setting: "Enable Data Signature Validation?"


Enable Domain Mapping

By enabling the Domain Authentication setting, you can restrict the AtomChat Access to a particular domain.

Perform the following steps to Enable Domain Authentication/Mapping

  • Go to your AtomChat Admin Panel -> Settings -> Authentication -> Under 'Security' tab -> Set 'Enable domain authentication' to 'Yes'.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article