Masalah: login gunakan SPRING Security + Stored Procedure (custom authentication)
Mencabar gak task ni. Sebab dah biasa gunakan config login SPRING Security & LDAP.
Work in progress:
- cuba guna custom beans + custom filter.
- daripada docs suruh guna custom AuthenticationProvider
Kajian & rujukan:
- Beans Go Crazy: Custom Authentication using Spring Security
- http://stackoverflow.com/questions/16104228/how-implement-spring-security-when-login-page-having-more-field-apart-from-user
- melalui jawapan yang diberi, mungkin boleh modify userdetails, cuma ini framework SPRING Security 2.0
- http://www.integratingstuff.com/2011/04/30/migrating-from-spring-security-2-to-spring-security-3/
- Implement custom AuthenticationProvider in Spring Security 2.06
- http://danielkaes.wordpress.com/2013/02/20/custom-authentication-provider-in-spring/, the most relevant info for my problems. What a shame, never found this post before, Google should be blamed for it! ***Working on this solution***
- masalah dgn bean la pulak!!!
- http://www.cleancode.co.nz/blog/937/customization-spring-security-authentication; tak sempat baca lagi.