Scenarios for adding and manipulating attributes
You can dynamically add attributes or manipulate the values of attributes for various purposes.
The following topics provide specific instructions to create or update the JavaScript file for dynamic attributes:
The following scenarios show examples of the data you can dynamically capture:
Creating a device.name attribute
In this scenario, you can create a device name attribute that a user can easily identify. While configuring a system that only has hybrid applications, you can gather a few more attributes while using the info.js active collection library. For example, if you combine three separate device attributes that the client sends, you can uniquely identify the device. The attributes are:
- Device Model
- Device Model Version
- Device UUID (unique ID)
Combining these attributes into a single attribute with a zero device weight results in a meaningful attribute name that you can use to display the device. You can accomplish this by providing a server-side JavaScript rule that runs when an attribute collection service request arrives.
Adding the last risk score as a session attribute to be used by a third party
The risk score is a derived attribute using a combination of other attributes. It can be useful for third party authentication services.
In this scenario, you can implement a JavaScript rule that captures the current risk score and stores it as a session attribute. Later, when a third-party application is determining possible further action based on the current context, it can make a remote call to the attribute collection service using the REST API call to retrieve the sessions attributes, such as risk score.