Class PassthroughRedirectActionWrapper
- java.lang.Object
-
- de.xima.fc.security.pac4j.passthrough.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 Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ParameterDefinition>getParameterDefinitions()Mappings allowed to contribute captured values to this client's redirect.Optional<org.pac4j.core.exception.http.RedirectionAction>getRedirectionAction(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)org.pac4j.core.redirect.RedirectionActionBuildergetWrapped()The original builder, responsible for protocol state, nonce, PKCE and the callback URL.
-
-
-
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 builderclient- the client used to select captured valuesparameterDefinitions- the allowed mappings, ornullfor 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:
getRedirectionActionin interfaceorg.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.
-
-