Search in sources :

Example 1 with DynamicFlowModelBuilder

use of org.apereo.cas.web.flow.configurer.DynamicFlowModelBuilder in project cas by apereo.

the class DuoSecurityMultifactorWebflowConfigurer method buildDuoFlowRegistry.

private FlowDefinitionRegistry buildDuoFlowRegistry(final DuoSecurityMultifactorAuthenticationProperties properties) {
    val modelBuilder = new DynamicFlowModelBuilder();
    createDuoFlowVariables(modelBuilder);
    createDuoFlowStartActions(modelBuilder);
    createDuoFlowStates(modelBuilder, properties);
    if (StringUtils.isBlank(properties.getDuoApplicationKey())) {
        createDuoFlowUniversalPromptActions(getLoginFlow());
    }
    return createDuoFlowDefinitionRegistry(properties, modelBuilder);
}
Also used : lombok.val(lombok.val) DynamicFlowModelBuilder(org.apereo.cas.web.flow.configurer.DynamicFlowModelBuilder)

Example 2 with DynamicFlowModelBuilder

use of org.apereo.cas.web.flow.configurer.DynamicFlowModelBuilder in project cas by apereo.

the class DuoMultifactorWebflowConfigurer method buildDuoFlowRegistry.

private FlowDefinitionRegistry buildDuoFlowRegistry(final MultifactorAuthenticationProvider p) {
    final DynamicFlowModelBuilder modelBuilder = new DynamicFlowModelBuilder();
    createDuoFlowVariables(modelBuilder);
    createDuoFlowStartActions(modelBuilder);
    createDuoFlowStates(modelBuilder);
    return createDuoFlowDefinitionRegistry(p, modelBuilder);
}
Also used : DynamicFlowModelBuilder(org.apereo.cas.web.flow.configurer.DynamicFlowModelBuilder)

Aggregations

DynamicFlowModelBuilder (org.apereo.cas.web.flow.configurer.DynamicFlowModelBuilder)2 lombok.val (lombok.val)1