Spring 3 - Custom Security

Posted by Eqbal on Stack Overflow See other posts from Stack Overflow or by Eqbal
Published on 2010-04-20T22:04:26Z Indexed on 2010/04/20 22:13 UTC
Read the original article Hit count: 323

Filed under:

I am in the process of converting a legacy application from proprietary technology to a Spring based web app, leaving the backend system as is. The login service is provided by the backend system through a function call that takes in some parameter (username, password plus some others) and provides an output that includes the authroizations for the user and other properties like firstname, lastname etc.

What do I need to do to weave this into Spring 3.0 security module. Looks like I need to provide a custom AuthenticationProvider implementation (is this where I call the backend function?). Do I also need a custom User and UserDetailsService implementation which needs loadUserByName(String userName)?

Any pointers on good documentation for this? The reference that came with the download is okay, but doesn't help too much in terms of implementing custom security.

© Stack Overflow or respective owner

Related posts about spring-security