Hi there, 

I am using CAS 6.4.x.

CasFiltersConfiguration  defines filters,  I wish to provide my own 
RegisteredServiceResponseHeadersEnforcementFilter (using a different name).

How would I do that without copying the entire CasFiltersConfiguration  
 or  RegisteredServiceResponseHeadersEnforcementFilter  and just change a 
couple lines?

I understand this is a Sprint boot question, but I think some may have a 
quick answer for me. Thanks a lot!

Yan


    @ConditionalOnProperty(prefix = "cas.http-web-request.header", name = 
"enabled", havingValue = "true", matchIfMissing = true)
    @RefreshScope
    @Bean
    public FilterRegistrationBean responseHeadersSecurityFilter() {
        val header = casProperties.getHttpWebRequest().getHeader();
        val initParams = new HashMap<String, String>();

 ...............

                val bean = new 
FilterRegistrationBean<RegisteredServiceResponseHeadersEnforcementFilter>();
        bean.setFilter(new 
RegisteredServiceResponseHeadersEnforcementFilter(servicesManager.getObject(),
            argumentExtractor.getObject(), 
authenticationRequestServiceSelectionStrategies.getObject(),
            registeredServiceAccessStrategyEnforcer.getObject()));

 ...............

        return bean;
    }


-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/81c9440e-0486-436d-8fe3-6b90e894c310n%40apereo.org.

Reply via email to