This node may occur multiple times. It describes a backend (web service) and the mapping of authentication requests to this backend.
Example:
<authentication-backend name="AuthenticationBackendFoo" type="SOAP">
<wsdl>Service.wsdl</wsdl>
<backend-request-mapping>
...
</backend-request-mapping>
<backend-response-mapping>
.
</backend-response-mapping>
</authentication-backend>
|
The attribute name is a unique name, which can later be used to reference the backend.
The attribute type must be set to SOAP at present. Future versions of the software will also support other backends.
The element <wsdl> must specify the name of a file that contains a WSDL description of the web service. Stingray Application Firewall uses this description as the basis for the request mapping.
The elements <backend-request-mapping> and <backend-response-mapping> are the core of the backend description.
backend-request-mapping:
<backend-request-mapping>
<method>
AccessResource
</method>
<parameter name="sessionToken" type="string">
request.cookies.MYAUTHCOOKIE
</parameter>
<parameter name="url" type="string">
request.url
</parameter>
<parameter name="certificate" type="string">
</parameter>
</backend-request-mapping>
|
The element <method> contains the name of the web service request that’s to be called on the backend.
Subsequently, the parameters of this call are described. In the given example, these are three parameters with the names sessionToken, url and certificate – each one of the type string. These parameters are set to the data of the HTTP request, in the given example the cookie MYAUTHCOOKIE, the URL and an empty string.
backend-response-mapping:
<backend-response-mapping>
<result type="bool">
response.response
</result>
</backend-response-mapping>
|
In the given example, the field response from the SOAP response will be analyzed to determine whether authentication was successful.
Optionally, the backend can provide a method to be notified when an entry in the cache of the authentication handler expires: <backend-cache-expire-notification>. (If present, this element must be inserted after the <backend-response-mapping> element.)
<backend-cache-expire-notification>
<method>
Logout
</method>
<parameter name="sessionToken" type="string"/>
</backend-cache-expire-notification>
|
|