Search

1 to 10 of 30
Sort by

Library Entry
Policy Repository: Random number generator

A simple policy that allows you to generate a random number of a fixed length. To use: Open policy manager and create a test service Download the attached file and import the XML file into your new service Modify this variable as needed: LENGTH : The number of digits to be returned ...

203012.zip


Library Entry
Policy Repository: Substring

A simple policy that allows extraction of a substring To use: Open policy manager and create a test service Download the attached file and import the XML file into your new service Modify these variables as needed: STRING : The string to extract the substring from START : The...

202498.zip


Library Entry
Policy Repository: Date Validation

Sometimes it may be necessary to perform date validation to confirm invalid data is not supplied. For example, you may need to prevent bad data like February 52, 2018 from being sent to a back end server. The attached sample policy retrieves a data from a JSON Payload and validates it. This...

200594.zip




Library Entry
Policy Repository: Sanitize JSON Body of special characters

Sometimes it may be necessary to remove special, non alpha-numeric characters, from JSON values. This policy uses a combination of RegEx and JSON path expressions to accomplish this. I.e: ( "value": "This is a test message ' with special characters $30 " ) To use: 1) Open Policy...

198742.zip



Library Entry
Policy to publish gateway metrics as chart.js

Hi all, I have modified the GatewayMetricsAssertion Policy that is included with the Tactical GatewayMetricsAssertion package. This gwmetricschartjs policy now displays some gatewaymetrics as a chart.js graph. URL parameters are used to display the metrics avgFrontendResponseTime,...

231183294.zip


Library Entry
Policy Repository: Retrieve OAuth Token Encapsulated Assertion

A simple encapsulated assertion utilizing the Client Credentials grant type in OAuth. This should work well with our own OTK and other providers that utilize this grant. If no values are supplied to the encapsulated assertion it will default to the OTK install and test client id/secret. If the...

195677.zip


Library Entry
Policy Repository: Concatenate JSON

A simple policy demonstrating how to concatenate two JSON strings. The policy utilizes RegEx to pull the key/value pairs (removing the curly braces). A source variable is set to the below. ( "user4": "Bill", "user5": "Mo", "user6": "Greg" ) This policy will add the...

194734.zip