The following information only applies to the JSP-Loginapp.
The Loginapp REST API does not support context retention policies and it does not allow a context to change during a session and especially not during a flow.
One of the characteristics of configuration contexts is their ability to be changed during an active user session. This ability is controlled by the context retention policy that allows a context to switch with every request, to be determined once for the entire session, or to switch from the default context to a target context exactly once during a session.
Context retention policies are based on session, request, and a mixed case that allows exactly one switch.
The following is the general principle of using context retention policies:
General principle for context retention policies
- SESSION: The configuration context is determined right at the start of the session and it never changes during this session. This is the most secure method is to determine the configuration context.
- REQUEST_ONLY_SWITCH_IF_NOT_DEFAULT: The configuration context is set to default context and it may switch to another configuration context exactly once.
- REQUEST: Evaluates and sets the configuration context for every request.