IdentityGatewayAdviceInterceptor

abstract class IdentityGatewayAdviceInterceptor : Interceptor

Reference Implementation of using Interceptor to handle advice from ForgeRock Identity Gateway

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
private fun decorateRequest(original: Request, advice: PolicyAdvice): Request

Decorate the request with additional parameter which required for Policy Advice

Link copied to clipboard
private fun getAdvice(location: String?): PolicyAdvice

Extract the Advice from the location redirect url

private fun getAdvice(response: Response): PolicyAdvice
Link copied to clipboard

Get the AdviceHandler to handle the advice request.

Link copied to clipboard
open override fun intercept(chain: Interceptor.Chain): Response