Hi Radomir, Should be possible.
If you look in the configuration at /server/security/userManagers you'll see how the user managers are configured. What you need to do is add is implement a UserManager that will find a UserManager from your spring application context and delegate all calls to it. Then add it in the config or substitute own of those with your own. The delegating user manager would look something like this: http://pastie.org/2076783 (requires blossom for getting the ServletContext) It has a fallback implementation that is used if the UserManager can't be found in spring. So in you version handler, install the delegating UserManager in the repo. In you module start up spring, as soon as spring is initialized the delegating UserManager will find it. Until spring has started up the fallback UserManager will be used. Regards, Tobias Mattsson Senior Software Engineer Magnolia International Ltd. On Jun 14, 2011, at 12:33 AM, Magnolia Forums (on behalf of Radomir Zugic) wrote: > > Hello, > > I'm trying to set up a custom UserManager which uses an external database. I > have DAOs and services which I would like to inject into the UserManager > instance but I cannot see where the application context is set up. Is this > possible and if so, how? > > Thanks, > Rade > > -- > Context is everything: > http://forum.magnolia-cms.com/forum/thread.html?threadId=0cbf9ba0-2899-415f-9144-10521d9469d8 > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
