Securing Destinations with custom LoginCommand implementation with Spring & Database Backend.
All, I was wondering if anyone had any suggestions on implementing a custom LoginCommand in java that would utilize custom DB-driven authentication. I want to manually query my DB by injecting a DAO into my LoginCommand implementation. The issue i see, however, is that the LoginCommand won't be created through the Spring Application,... Therefore, it won't be a bean that has the DAO injected into it. In the services-config file, there isn't a place to specify a factory, which would be my SpringFactory class (at least from what i can see...)
But in the CustomLoginCommand i want the dao's injected into it like a service-tier class would in spring.