Roundcube Community Forum

 

RoundCube auto login from node js

Started by itrewaworks, December 24, 2021, 02:31:01 AM

Previous topic - Next topic

itrewaworks

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.

JohnDoh

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...

itrewaworks

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

JohnDoh

QuoteDo 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.

QuoteAlso, 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...

pyro_fire

Quote from: 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.

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?