I only need to secure URLs and methods.
My application has own difficult authentification method, and I can simply set the SecurityContext in this method:
Securing methods I guess is possible with such configurations:Code:SecurityContextHolder.getContext().setAuthentication(new UsernamePasswordAuthenticationToken(user.getUsername(), user.getPassword(), authorities));
(Without any other filters.)Code:<b:bean id="springSecurityFilterChain" class="org.springframework.security.web.FilterChainProxy"> <filter-chain-map path-type="ant"> <filter-chain pattern="/**" filters="securityContextPersistenceFilter"/> </filter-chain-map> </b:bean> <b:bean id="securityContextPersistenceFilter" class="org.springframework.security.web.context.SecurityContextPersistenceFilter"/>
But is there possibility to secure URLs without AuthenticationManager?


Reply With Quote
