Search in sources :

Example 6 with FlowDefinitionRegistryBuilder

use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.

the class SwivelConfiguration method swivelAuthenticatorFlowRegistry.

@Bean
public FlowDefinitionRegistry swivelAuthenticatorFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-swivel/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 7 with FlowDefinitionRegistryBuilder

use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.

the class YubiKeyConfiguration method yubikeyFlowRegistry.

@Bean
public FlowDefinitionRegistry yubikeyFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-yubikey/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 8 with FlowDefinitionRegistryBuilder

use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.

the class AuthyConfiguration method authyAuthenticatorFlowRegistry.

@Bean
public FlowDefinitionRegistry authyAuthenticatorFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-authy/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 9 with FlowDefinitionRegistryBuilder

use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.

the class AzureAuthenticatorConfiguration method azureAuthenticatorFlowRegistry.

@Bean
public FlowDefinitionRegistry azureAuthenticatorFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-azure/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 10 with FlowDefinitionRegistryBuilder

use of org.springframework.webflow.config.FlowDefinitionRegistryBuilder in project cas by apereo.

the class GoogleAuthenticatorConfiguration method googleAuthenticatorFlowRegistry.

@Bean
public FlowDefinitionRegistry googleAuthenticatorFlowRegistry() {
    final FlowDefinitionRegistryBuilder builder = new FlowDefinitionRegistryBuilder(this.applicationContext, this.flowBuilderServices);
    builder.setBasePath("classpath*:/webflow");
    builder.addFlowLocationPattern("/mfa-gauth/*-webflow.xml");
    return builder.build();
}
Also used : FlowDefinitionRegistryBuilder(org.springframework.webflow.config.FlowDefinitionRegistryBuilder) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

FlowDefinitionRegistryBuilder (org.springframework.webflow.config.FlowDefinitionRegistryBuilder)16 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)12 Bean (org.springframework.context.annotation.Bean)12 FlowModelFlowBuilder (org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder)3 DefaultFlowModelHolder (org.springframework.webflow.engine.model.builder.DefaultFlowModelHolder)3 lombok.val (lombok.val)2 CipherBean (org.cryptacular.bean.CipherBean)2 Flow (org.springframework.webflow.engine.Flow)2 FlowDefinitionRegistry (org.springframework.webflow.definition.registry.FlowDefinitionRegistry)1 FlowBuilder (org.springframework.webflow.engine.builder.FlowBuilder)1 FlowModelHolder (org.springframework.webflow.engine.model.registry.FlowModelHolder)1