Maintenance Manual

94 Cisco Unified Web and E-Mail Interaction Manager Administrator’s Guide to Chat and Collaboration Resources
// You MUST pass the SAML assertion with the name 'SAMLResponse' in this
function
</script>
4. If you want to transfer any additional attributes outside the SAML assertion, you can pass them as name-
value pairs using the
egainChat.storeChatParameters
function as follows:
<script language=javascript>
// Customer information passed to Unified WIM as name-value pairs. Base64
encoded
SAML token is passed with the name “SAMLResponse”
egainChat.storeChatParameters('SAMLResponse', '<Base64 encoded SAML
assertion>');
egainChat.storeChatParameters('fieldname_2', '977-213-4444'); // SSN of the
customer
egainChat.storeChatParameters('fieldname_3', '4AZZXX7895463'); // account
number of the customer
//fieldname_2 and fieldname_3 are the second and third field respectively in
the loginParameters array configured in the eGainLiveConfig.js file of the chat
template
</script>
5. Save your changes.
Troubleshooting
Chat creation requests can be denied due to various conditions. In such cases, the customer is shown an error
message along with an error code. The error code varies based on the cause of the issue and helps narrow down
the root cause.
Important: You need to add an additional code to get the Base64 encoded SAML assertion for
the user that is logged on to your website.
Important: The attributes transferred as name-value pairs outside the SAML assertion must
not be the same as the attributes transferred in the SAML assertion. This will result in chat
request being denied.
Error Code Cause
400-101
‘Apply Customer Chat Single Sign On’ is enabled for the entry point, but SAML
assertion is missing in the chat request.
Make sure that you are passing the SAML assertion in the chat creation
request.
400-102
If there is an expiration date time set in the SAML assertion, the assertion has
expired by the time it reaches the application.