WebMail Pro 8 documentation

Integration via Single Sign-On

While the product supports logging in programmatically, existing method isn't 100% perfect. It requires having main system and webmail application installed within the same domain, and it might present security issues if you transfer login credentials via POST or GET.

So, a different method known as Single Sign-On was implemented to allow for eliminating these issues. It's invoked in a very simple and straightforward way:

include_once '/var/www/webmail/system/autoload.php';
header('Location: http://webmail.domain.com/?sso&hash='.\Aurora\System\Api::GenerateSsoToken($sEmail, $sPassword, $sLogin));

This approach allows for integration with nextCloud as well as other systems.

NB: While GenerateSsoToken method technically accepts 3 arguments (email, password and optionally login), login always matches email address. The case where login is different from email is not supported.