File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Acegi security - writing custom username validation to db. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Acegi security - writing custom username validation to db." Watch "Acegi security - writing custom username validation to db." New topic
Author

Acegi security - writing custom username validation to db.

Nina Anderson
Ranch Hand

Joined: Jul 18, 2006
Posts: 148
Hi,

I'm new to Acegi Security, so I'm having trouble starting. I have a solid understanding on working with Spring, Struts and Hibernate.

Now, I want to create a web login page with Acegi, where I can write my AuthenticationDAO and use my database for username validation. I found alot of samples on InMemoryDaoImpl and JdbcImpl, but that's not what I want!!!

Can anyone provide me sample code on implementing "PasswordDaoAuthenticationProvider", "DaoAuthenticationProvider" with custom database access (doesn't have to be hibernate). Also, how to tie it back to the applicationContext.xml config file?

Please Please help!!!
Robin Wilson
Greenhorn

Joined: May 10, 2006
Posts: 22
Have you looked at "AppFuse"?

http://appfuse.org/

It seems to be a "pre-setup" project that includes Acegi (and Spring, etc.)... Perhaps it would provide a good example on how to do this for you?


--<br />Robin D. Wilson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Acegi security - writing custom username validation to db.