Third Party Contributions > API Based Plugins

RoundCube auto login from node js

(1/1)

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.

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:

--- Quote ---Do we need to install the roundcube first, can you please share me the steps to start using this with my domain.
--- End quote ---
Please see the INSTALL file shipped with Roundcube or the wiki.


--- Quote ---Also, is this only for php please.
--- End quote ---
Roundcube requires PHP yes, 1.5.x supports PHP >=5.5 <=8.0

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.

--- End quote ---

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?

Navigation

[0] Message Index

Go to full version