Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: itrewaworks on December 24, 2021, 02:31:01 AM

Title: RoundCube auto login from node js
Post by: itrewaworks 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.
Title: Re: RoundCube auto login from node js
Post by: JohnDoh 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.
Title: Re: RoundCube auto login from node js
Post by: itrewaworks 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
Title: Re: RoundCube auto login from node js
Post by: JohnDoh 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 (https://github.com/roundcube/roundcubemail/wiki/Installation).

Quote
Also, is this only for php please.
Roundcube requires PHP yes, 1.5.x supports PHP >=5.5 <=8.0
Title: Re: RoundCube auto login from node js
Post by: pyro_fire 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?