Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Silpion on August 16, 2012, 06:53:58 PM

Title: Roundcube login in external website
Post by: Silpion on August 16, 2012, 06:53:58 PM
Hi,

Any way to put roundcube login and password field in external website? The page is situated out of roundcube domain, although their are in the same server connected with an absolute path. I've tried all methods, as one described under http://blog.philippheckel.com/2008/05/16/roundcube-login-via-php-script/ but none of them works. Other, including my own scripts ends with "invalid request" reply due to invalid token input (one, captured with pregmatch method doesn't correspond with the proper one as the IP address is different). I can't pull out any information from CURL, because all post information after the proper login are build within javascript.

Please, help.

Regards, Tom
Title: Re: Roundcube login in external website
Post by: SKaero on August 16, 2012, 08:03:46 PM
If you control RoundCube you could make a plugin to do it. You'd want to store some sort of token in a database instead of cookies.
Title: Re: Roundcube login in external website
Post by: teebsd on January 24, 2014, 09:05:39 PM
I finally made that. Check it out in my gist. https://gist.github.com/TeeBSD/8610622

Just make a patch.

PS: I need a job.