Author Topic: RoundCube auto login from node js  (Read 342 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,650
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,650
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…