Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Acegi security - writing custom username validation to db.

 
Nina Anderson
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic