Package org.forgerock.openig.ping
Class PingOneApiAccessManagementFilterHeaplet
java.lang.Object
org.forgerock.openig.heap.GenericHeaplet
org.forgerock.openig.ping.PingOneApiAccessManagementFilterHeaplet
- All Implemented Interfaces:
Heaplet
This filter permits to evaluate the HTTP request and response against Ping One API Access Management (P1 AAM).
P1 AAM may decide to:
- Block the incoming request and return a specific HTTP response (HTTP 403 with reason, for example)
- Permit the incoming request, but update some of its attributes, such as its method, URL, headers and body.
- Analyze the incoming response and update some of its attributes, such as its status, headers and body.
Limitation: This Filter does not permit to send client certificate, nor a pre-validated access token yet.
Usage:
{
"type": "PingOneApiAccessManagementFilter",
"config": {
"gatewayServiceURL" : URL, [REQUIRED - The Gateway service URL, located at
'Authorization' > 'API Gateways' > 'Service URL']
"secretsProvider" : SecretsProvider, [REQUIRED - Contains the PingOne API Gateway credential]
"gatewayCredentialSecretId" : boolean, [REQUIRED - The secret ID pointing to the API Gateway
credential in the Secret Provider]
"includeBodyContentTypes" : [ String ] [OPTIONAL - When these content types are present, send
the body to the sideband API.
Defaults to never send the body ]
"sidebandHandler" : Handler, [OPTIONAL - The ClientHandler to use to contact PingOne
API. default to the Forgerock HttpClient]
"accessToken" : RuntimeExpression<String> [OPTIONAL - The location to find the access token to send
to Ping API Access Management]
}
}
Note: Including the body to every Ping Request will have impacts on HTTP exchange latency.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.forgerock.openig.heap.GenericHeaplet
create, destroy, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getType, initialBindings, meterRegistryHolder, start
-
Field Details
-
NAME
Public name used by resolver.- See Also:
-
-
Constructor Details
-
PingOneApiAccessManagementFilterHeaplet
public PingOneApiAccessManagementFilterHeaplet()
-
-
Method Details
-
create
Description copied from class:GenericHeapletCalled to request the heaplet create an object. Called byHeaplet.create(Name, JsonValue, Heap)after initializing the protected field members. Implementations should parse configuration but not acquire resources, start threads, or log any initialization messages. These tasks should be performed by theGenericHeaplet.start()method.- Specified by:
createin classGenericHeaplet- Returns:
- The created object.
- Throws:
HeapException- if an exception occurred during creation of the heap object or any of its dependencies.
-