Skip to main content

The most recent patch for this version is 5.0.2.  Learn more  

Version: 5.0

Sample configuration

The following is a sample configuration for the HTTP Attribute Connector. In this example, the connector has been configured to connect to the “Mock Service” located at URL http://djob-hp:8280/mock/mock.

The configuration contains a single mapping:

  • the XACML attribute pip.payload will be retrieved from the web service based on the key attribute pip.username and the message payload template located at /request.template.json (on the classpath).
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://www.axiomatics.com/http.config" identifier="myUniqueId">
<connection>
<url>http://djob-hp:8280/mock/mock</url>
<keystore file="keystore.jks" password="changeit" type="JKS"></keystore>
<truststore file="truststore.jks" type="JKS" password="changeit"></truststore>
<header>
<name>foo</name>
<value>bar</value>
</header>
<method>POST</method>
<!-- Consider the following as 200 and return the payload in the relevant attribute -->
<acceptedHttpCode>404</acceptedHttpCode>
<!-- Make the following codes silent errors and return an empty value in the relevant attribute -->
<ignoredHttpCode>405</ignoredHttpCode>
<ignoredHttpCode>406</ignoredHttpCode>
</connection>
<mapping>
<xacmlAttribute Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="pip.payload" DataType="http://www.w3.org/2001/XMLSchema#string" Issuer=""/>
<contentType>application/json</contentType>
<template classpath="true" payload="false">/request.template.json</template>
<key>
<xacmlAttribute Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="pip.username" DataType="http://www.w3.org/2001/XMLSchema#string" Issuer=""/>
</key>
</mapping>
</configuration>