Class SidebandApiFilter
java.lang.Object
org.forgerock.openig.ping.sideband.SidebandApiFilter
- All Implemented Interfaces:
Filter
Sends the requests and responses to the Ping Sideband API, then process its decisions and accept/reject/rewrite
requests and responses.
Ping Sideband API is provided by these 3 Ping services :
- PingAuthorize
- PingAccess
- PingOne Authorize API Access Management (AAM)
The SideBand API is an API in front of the Ping's decision engine, which offers:
- A simpler API than the "versatility and expressiveness" of the Ping's Decision engine one.
- An Access Token validation and extraction
- A request/response rewrite feature
Notes on Request/Response closure
- The requests/responses to the sideband API are closed by this filter.
- The incoming request will NOT be closed by this filter, but by its instanciator.
- The outgoing request will be closed by this filter.
- The incoming response will be closed by this filter ONLY IF its entity is not reused. Otherwise, its entity will be closed by the outgoing response consumer.
- The outgoing response will be closed by its consumer.
-
Constructor Summary
ConstructorsConstructorDescriptionSidebandApiFilter
(URI gatewayServiceUri, Handler sidebandApiHandler, boolean includeBody) Create a new Sideband API Filter. -
Method Summary
-
Constructor Details
-
SidebandApiFilter
Create a new Sideband API Filter.- Parameters:
gatewayServiceUri
- the gateway service URIsidebandApiHandler
-includeBody
-
-
-
Method Details
-
filter
public Promise<Response,NeverThrowsException> filter(Context context, Request incomingRequest, Handler next) Description copied from interface:Filter
Filters the request and/or response of an exchange. To pass the request to the next filter or handler in the chain, the filter callsnext.handle(context, request)
.This method may elect not to pass the request to the next filter or handler, and instead handle the request itself. It can achieve this by merely avoiding a call to
next.handle(context, request)
and creating its own response object. The filter is also at liberty to replace a response with another of its own by intercepting the response returned by the next handler.
-