Package org.forgerock.openig.openam
Class CdSsoConditionAdviceFilter
- java.lang.Object
-
- org.forgerock.openig.openam.AbstractConditionAdviceFilter
-
- org.forgerock.openig.openam.CdSsoConditionAdviceFilter
-
- All Implemented Interfaces:
Filter
public class CdSsoConditionAdviceFilter extends AbstractConditionAdviceFilter
This filter handles any condition advices returned from AM during a policy evaluation, which one will depend on the policy. The condition advices are contained in thePolicyDecisionContext. If a supported condition advice is found then we send a redirect to AM with the advice details to fulfill the conditions.This specific condition advice filter manages the redirect to AM according to the OIDC flow required to handle cross-domain SSO.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openig.openam.AbstractConditionAdviceFilter
amService, formatEncoder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Promise<Response,NeverThrowsException>doRedirect(Context context, Request request, Handler next, List<org.forgerock.openig.openam.AbstractConditionAdviceFilter.Advice> advices, URI originalUri)Handle redirect to theinstanceto verify the required advices.-
Methods inherited from class org.forgerock.openig.openam.AbstractConditionAdviceFilter
customAdvicesResponse, filter
-
-
-
-
Method Detail
-
doRedirect
protected Promise<Response,NeverThrowsException> doRedirect(Context context, Request request, Handler next, List<org.forgerock.openig.openam.AbstractConditionAdviceFilter.Advice> advices, URI originalUri)
Description copied from class:AbstractConditionAdviceFilterHandle redirect to theinstanceto verify the required advices.- Specified by:
doRedirectin classAbstractConditionAdviceFilter- Parameters:
context- theContextrequest- theRequestnext- theHandleradvices- the list of advices to be verifiedoriginalUri- the originalUri, based onUriRouterContext#getOriginalUri, may have been updated based on a call toAuthRedirectContext#notifyImpendingIgRedirectAndUpdateUri- Returns:
- a redirect response
Promise
-
-