File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes does it make any sense to code for authentication using Spring MVC instead of using Spring Security? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "does it make any sense to code for authentication using Spring MVC instead of using Spring Security?" Watch "does it make any sense to code for authentication using Spring MVC instead of using Spring Security?" New topic
Author

does it make any sense to code for authentication using Spring MVC instead of using Spring Security?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 652
Does it make any sense to use Spring MVC for creating Authenticating code ( Enter login Password and click submit ), when spring provides Spring Security mechanism.Are there any cases where one should not use Spring Security and instead write code to enter username passoword and authenticate using Spring MVC(say how we do in struts or JSP).
thanks.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

Personally for security in that environment I always use Spring Security. But I also do it with ajax login instead of form submission. But that requires coding a login controller that does the code with Spring Security that otherwise would happen automatically.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: does it make any sense to code for authentication using Spring MVC instead of using Spring Security?