Hello,

Is there any way XML/Java config to register a global filter which will be invoked in all the security filter chains? I don't want to register the filter by XML/Java config myself in all the security filter chains additionally I don't want to add it in the web.xml (for servlet container apps), is there any way that make it easy and straightforward ?

Thanks,

Comment From: marcusdacoregio

Hi, @mazenaissa, thanks for reaching out. It feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add more detail if you feel this is a genuine bug.

That said, if you are using Spring Boot you can take a look at its documentation. If you have an implementation of Filter you can make it a Spring Bean to be registered with the embedded container.