Class PassthroughRedirectActionWrapper

  • All Implemented Interfaces:
    org.pac4j.core.redirect.RedirectionActionBuilder

    public class PassthroughRedirectActionWrapper
    extends Object
    implements org.pac4j.core.redirect.RedirectionActionBuilder
    Decorates a protocol-specific redirect builder with captured form login parameters.

    Existing query parameters take precedence. Non-URL actions and unchanged URLs retain the original action. Session parameters are consumed only after a modified redirect action has been constructed successfully.

    Since:
    8.6.0
    • Constructor Detail

      • PassthroughRedirectActionWrapper

        public PassthroughRedirectActionWrapper​(org.pac4j.core.redirect.RedirectionActionBuilder wrapped,
                                                org.pac4j.core.client.Client client,
                                                List<ParameterDefinition> parameterDefinitions)
        Creates a decorator without changing the original builder's protocol logic.
        Parameters:
        wrapped - the original redirect builder
        client - the client used to select captured values
        parameterDefinitions - the allowed mappings, or null for none
    • Method Detail

      • getRedirectionAction

        public Optional<org.pac4j.core.exception.http.RedirectionAction> getRedirectionAction​(org.pac4j.core.context.WebContext context,
                                                                                              org.pac4j.core.context.session.SessionStore sessionStore)
        Specified by:
        getRedirectionAction in interface org.pac4j.core.redirect.RedirectionActionBuilder
      • getWrapped

        public org.pac4j.core.redirect.RedirectionActionBuilder getWrapped()
        The original builder, responsible for protocol state, nonce, PKCE and the callback URL.
      • getParameterDefinitions

        public List<ParameterDefinition> getParameterDefinitions()
        Mappings allowed to contribute captured values to this client's redirect.