Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Securing Destinations with custom LoginCommand implementation with Spring & Database Backend.

Avatar

Not applicable
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...)





Custom



But in the CustomLoginCommand i want the dao's injected into it like a service-tier class would in spring.

Any ideas would be appreciated.

Thanks,
Damian
0 Replies