On 07/15/2010 11:04 PM, xManish wrote: > > I have two different applications - myProject and Xwiki running on tomcat > server. > I have iframe in myProject that displays the xwiki.I made the look and feel > much similiar so that it feel like same app to the user. > I'm using REST APIs to communicate between two apps. > I've made the application such that if the user is created in myProject, the > same user gets created in XWiki too. > > Now, I wanted to make the application such that if the user logs in > myProject, he/she will be automatically logged in the xwiki. > Can this be achieved? > Any help will be greatly appreciated.
XWiki authenticates using cookies. You could duplicate the code that adds the right cookies (com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager#rememberLogin) into your application, and XWiki will automatically see them and login the right user. Don't forget to remove those cookies on logout (#forgetLogin). -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
