Author Topic: Roundcube login in external website  (Read 7590 times)

Offline Silpion

  • Newbie
  • *
  • Posts: 1
Roundcube login in external website
« 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube login in external website
« Reply #1 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.

Offline teebsd

  • Newbie
  • *
  • Posts: 5
Re: Roundcube login in external website
« Reply #2 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.