Hi Thomas, This way you get user logged in the context, that doesn't mean user is set in session and it has all ACLs resolved. What else are you (not) doing? Can you provide full stacktrace from the error you get?
Cheers, Jan On Mar 5, 2012, at 12:33 AM, Thomas Martin wrote: > Dear List > > I need a simple way to react on an external login mechanism. > > While digging through various requests to the list I found this gem, which > would do exactly what I need: > > MgnlUser mgnlUser = (MgnlUser) > SecuritySupport.Factory.getInstance().getUserManager().getUser(userIdToLogin); > MgnlContext.login(mgnlUser); > > > Unfortunately it seems that the returned User is not fully instantiated and > thus cannot login. > Can someone give me a hint how to solve this? > > Thanks for any pointers! > Cheers, Thomas > > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
