Skip to content

Conversation

@sakinsete
Copy link

Description

This commit introduces the ability to intercept and modify HTTP responses within the ForgeRock SDK. This is primarily to facilitate integration with systems like F5 Distributed Cloud Defense Mobile SDK, which require inspection and processing of response headers.

The following components have been added:

  • FRResponseInterceptor: Interface for defining response interceptors.
  • ResponseInterceptor: A more generic interface for response interception.
  • Response: A wrapper class for OkHttp's Response object, providing a consistent API for interceptors.
  • OkHttpResponseInterceptor: An OkHttp Interceptor that processes responses using registered ResponseInterceptor instances.
  • ResponseInterceptorRegistry: A singleton registry for managing ResponseInterceptor instances.

The ServerConfig has been updated to include OkHttpResponseInterceptor in its default set of interceptors.

This commit introduces the ability to intercept and modify HTTP responses within the ForgeRock SDK. This is primarily to facilitate integration with systems like F5 Distributed Cloud Defense Mobile SDK, which require inspection and processing of response headers.

The following components have been added:

- `FRResponseInterceptor`: Interface for defining response interceptors.
- `ResponseInterceptor`: A more generic interface for response interception.
- `Response`: A wrapper class for OkHttp's `Response` object, providing a consistent API for interceptors.
- `OkHttpResponseInterceptor`: An OkHttp `Interceptor` that processes responses using registered `ResponseInterceptor` instances.
- `ResponseInterceptorRegistry`: A singleton registry for managing `ResponseInterceptor` instances.

The `ServerConfig` has been updated to include `OkHttpResponseInterceptor` in its default set of interceptors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant