We have an application which integrates GWT into Magnola CMS.
It uses the following approach to login user: // Login into application via JAAS. new ProgrammaticLogin().login(username, password, "customApp", getThreadLocalRequest(), getThreadLocalResponse(), true); // Login into magnolia. CredentialsCallbackHandler callbackHandler = new PlainTextCallbackHandler(username, password.toCharArray(), "public"); SecuritySupport.Factory.getInstance().authenticate(callbackHandler, "magnolia"); We had custom template with the login form which used to work correctly. After successful login - GWTs RemoteServiceServlet.getThreadLocalRequest().getUserPrincipal() returned the principal of the logged in user. Once we have moved to the STK usage and inherited our template from the section template - it stopped working. The application and Magnolia still login correctly but RemoteServiceServlet.getThreadLocalRequest().getUserPrincipal() always returns null. However nothing has changed in terms of the JAAS interaction, just the template. Any ideas? Thank you. -- View this message in context: http://old.nabble.com/GWT-Magnolia-JAAS-integration-in-GlassFish.-tp29244715p29244715.html Sent from the Magnolia - User mailing list archive at Nabble.com. ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
