Author Topic: RoundCube auto login from node js  (Read 9566 times)

Offline itrewaworks

  • Newbie
  • *
  • Posts: 2
RoundCube auto login from node js
« on: December 24, 2021, 02:31:01 AM »
Hi,

I want to avoid users providing the email id and password multiple times, so do we have any api which can be used to auto login an user by sending credentials please.
I have searched on this forum n found something like:

https://<mailserver>.com/mail/?_task=login&_user=<email>&&_pass=<password>

but this is not taking user to inbox.

I want it like, if we hit this URL then user should be directly taken to Inbox as per the given credentials.

Can some one please suggest.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: RoundCube auto login from node js
« Reply #1 on: December 24, 2021, 03:42:15 AM »
To do this you need to use a plugin. Have a look at the autologon or http_authentication plugins that ship with Roundcube for a starting point.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline itrewaworks

  • Newbie
  • *
  • Posts: 2
Re: RoundCube auto login from node js
« Reply #2 on: December 24, 2021, 05:35:53 AM »
Thanks for your reply John.

Do we need to install the roundcube first, can you please share me the steps to start using this with my domain.

Also, is this only for php please.

Thank & Regards,
Shilpa

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: RoundCube auto login from node js
« Reply #3 on: December 24, 2021, 06:42:10 AM »
Quote
Do we need to install the roundcube first, can you please share me the steps to start using this with my domain.
Please see the INSTALL file shipped with Roundcube or the wiki.

Quote
Also, is this only for php please.
Roundcube requires PHP yes, 1.5.x supports PHP >=5.5 <=8.0
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline pyro_fire

  • Newbie
  • *
  • Posts: 5
Re: RoundCube auto login from node js
« Reply #4 on: January 21, 2022, 03:36:05 PM »
To do this you need to use a plugin. Have a look at the autologon or http_authentication plugins that ship with Roundcube for a starting point.

I have the same need to login via URL parameters, I tried to install a plugin following the instructions contained (save it in the /plugins folder and then add it to the array in configu.inc.php) but the plugin does not enable.
When sending parameters to the active URL the login process from the LOGIN file, which runs successfully, but doesn't seem to completely load the session inside RCLogin, is there any alternative to this without using plugins?