I am developing a REST application, which is using the Jersey framework. I would like to know how I can control user authentication. I have searched many places, and the clo
I'm sucessfully using spring security for securing my Jersey-based API. It has pluggable authentication schemes allowing you to switch from Basic Auth to something else later. I'm not using Spring in general, just the security stuff.
Here is the relevant part from my web.xml
org.springframework.web.context.ContextLoaderListener
contextConfigLocation
/WEB-INF/security-applicationContext.xml,
/WEB-INF/applicationContext.xml
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
targetBeanName
springSecurityFilterChain
springSecurityFilterChain
/*
You can leave applicationContext.xml empty (