Now it's time to add these security features to our application.
First we need to define the Spring Python Security agent. To do this, we need to add the following code to our
@Object def filterChainProxy(self): return CP3FilterChainProxy(filterInvocationDefinitionSource = [ ("/login.*", ["httpSessionContextIntegrationFilter"]), ("/.*", ["httpSessionContextIntegrationFilter", "exception_translation_filter", "auth_processing_filter", "filter_security_interceptor"]) ])
springpython.security.cherrypy3.CP3FilterChainProxy uses CherryPy APIs to insert itself into the chain of handlers that are called before our CherryPy application is called. This allows the filter chain proxy to apply the ...