@Override
                public void addInterceptors(@Nonnull final InterceptorRegistry registry) {
                    authenticationThrottlingExecutionPlan.ifAvailable(plan -> {
                        val handler = new RefreshableHandlerInterceptor(plan::getAuthenticationThrottleInterceptors);
                        LOGGER.debug("Activating authentication throttling for REST endpoints...");
                        registry.addInterceptor(handler).order(0).addPathPatterns("/v1/**");
                    });
                }
This is {@link CasRestAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-rest/src/main/java/org/apereo/cas/config/CasRestAutoConfiguration.java