Search in sources :

Example 1 with CasFlowHandlerAdapter

use of org.apereo.cas.web.flow.CasFlowHandlerAdapter in project cas by apereo.

the class CasWebflowContextConfiguration method loginHandlerAdapter.

@Bean
public HandlerAdapter loginHandlerAdapter() {
    final FlowHandlerAdapter handler = new CasFlowHandlerAdapter(CasWebflowConfigurer.FLOW_ID_LOGIN);
    handler.setFlowExecutor(loginFlowExecutor());
    handler.setFlowUrlHandler(loginFlowUrlHandler());
    return handler;
}
Also used : CasFlowHandlerAdapter(org.apereo.cas.web.flow.CasFlowHandlerAdapter) FlowHandlerAdapter(org.springframework.webflow.mvc.servlet.FlowHandlerAdapter) CasFlowHandlerAdapter(org.apereo.cas.web.flow.CasFlowHandlerAdapter) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 2 with CasFlowHandlerAdapter

use of org.apereo.cas.web.flow.CasFlowHandlerAdapter in project cas by apereo.

the class CasWebflowContextConfiguration method logoutHandlerAdapter.

@RefreshScope
@Bean
public HandlerAdapter logoutHandlerAdapter() {
    final FlowHandlerAdapter handler = new CasFlowHandlerAdapter(CasWebflowConfigurer.FLOW_ID_LOGOUT);
    handler.setFlowExecutor(logoutFlowExecutor());
    handler.setFlowUrlHandler(logoutFlowUrlHandler());
    return handler;
}
Also used : CasFlowHandlerAdapter(org.apereo.cas.web.flow.CasFlowHandlerAdapter) FlowHandlerAdapter(org.springframework.webflow.mvc.servlet.FlowHandlerAdapter) CasFlowHandlerAdapter(org.apereo.cas.web.flow.CasFlowHandlerAdapter) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

CasFlowHandlerAdapter (org.apereo.cas.web.flow.CasFlowHandlerAdapter)2 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)2 Bean (org.springframework.context.annotation.Bean)2 FlowHandlerAdapter (org.springframework.webflow.mvc.servlet.FlowHandlerAdapter)2 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1