Custom Authentication Interrupt

If you wish to design your own interrupt strategy to make inquiries, you can design your component to make determinations:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@AutoConfiguration
@EnableConfigurationProperties(CasConfigurationProperties.class)
public class MyInterruptConfiguration {
    @Bean
    public InterruptInquirer myInterruptInquirer() {
      ...
    }

    @Bean
    public InterruptInquiryExecutionPlanConfigurer myInterruptInquiryExecutionPlanConfigurer(
        @Qualifier("myInterruptInquirer")
        InterruptInquirer myInterruptInquirer) {
        return plan -> {
            plan.registerInterruptInquirer(myInterruptInquirer);
        };
    }
}

See this guide to learn more about how to register configurations into the CAS runtime.