You can customize the way in which the Ambient Data Framework handles an HTTP request.
Procedure
- Open the cd_ambient_conf.xml in a plain-text or XML editor.
- Insert a
Security element directly above the Cartridges element in this file (or, if you added it, directly above the <InstanceID> element).
- In the
Security element, add the following:
- A
<WWW-Authenticate> element. This element must contain the message you wish to return in response to unauthorized HTTP requests.
- A
<RequestValidator> element, which contains a Java class you implemented, and which the Ambient Data Framework calls before it begins its claim processing. Your Java class must implement the com.tridion.ambientdata.web.RequestValidator interface.
- Save and close cd_ambient_conf.xml.