Class TransitionMultiFactorAuthentication

    • Constructor Detail

      • TransitionMultiFactorAuthentication

        TransitionMultiFactorAuthentication()
        Constructor.
    • Method Detail

      • setEventContextLookupStrategy

        public void setEventContextLookupStrategy​(@Nonnull
                                                  Function<ProfileRequestContext,​EventContext> strategy)
        Set the lookup strategy to use for the current event context.
        Parameters:
        strategy - lookup strategy
      • setValidateLoginTransitions

        public void setValidateLoginTransitions​(boolean flag)
        Set whether to validate transitions to a new login flow by evaluating the request and ensuring options like IsPassive and ForceAuthn are compatible with the flow.

        Defaults to 'true', override if your custom transition logic handles these issues.

        Parameters:
        flag - flag to set
      • doTransition

        private void doTransition​(@Nonnull
                                  ProfileRequestContext profileRequestContext,
                                  @Nonnull
                                  AuthenticationContext authenticationContext,
                                  @Nonnull
                                  MultiFactorAuthenticationTransition transition)
        Respond to a signal to transition the MFA process to a new flow.
        Parameters:
        profileRequestContext - profile request context
        authenticationContext - authentication context
        transition - transition rule to use