Re: [xwiki-users] Single sign on

2010-07-18 Thread xManish
I got it right. For some reason, I thought I had to convert the key to HEX. I was wrong. I changed the code like below and it worked... :) for secretkey, String secret = titititititititititititititititi; (the one from xwiki.cfg) byte[] theKey = secret.getBytes(); KeySpec ks = new

Re: [xwiki-users] Single sign on

2010-07-16 Thread xManish
Sergiu Dumitriu-2 wrote: 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

Re: [xwiki-users] Single sign on

2010-07-16 Thread Sergiu Dumitriu
On 07/16/2010 07:48 PM, xManish wrote: Sergiu Dumitriu-2 wrote: 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

Re: [xwiki-users] Single sign on

2010-07-16 Thread xManish
Sergiu Dumitriu-2 wrote: Actually, it says this in xwiki.cfg, above the keys: #-# Cookie encryption keys. You SHOULD replace these values with any random string, #-# as long as the length is the same. So you should generate keys with 32 characters. I mis-interpreted it. I thought

[xwiki-users] Single sign on

2010-07-15 Thread xManish
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

Re: [xwiki-users] Single sign on

2010-07-15 Thread Sergiu Dumitriu
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