-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for custom login/logout url #278
Comments
Solved. Also the example should be different. Like: <?php
// Enable SnappyMail Api and include index file
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true;
require 'index.php';
//
// Get sso hash
//
// @param string $email
// @param string $password
// @return string
//
$ssoHash = \RainLoop\Api::CreateUserSsoHash('user@yourdomain.com', 'password');
// redirect to webmail sso url
\header('Location: https://yourdomain.com/?sso&hash='.$ssoHash); |
P.S. Why the change? |
Thank you for addressing this quickly. Due to maintenance overhead we only wanted 2 webmails at maximum. That was the main reason for not accepting the PR. Mailu is a very small project. SnappyMail is more focused on addressing security issues. It is also very similar to Rainloop. For this reason we are looking into replacing Rainloop with SnappyMail. |
I understand. That's why i forked RainLoop.
I understand, but under the hood a lot is changing (and not only security). For now you can test this issue in v2.13.4 |
It is working brilliantly! I will close the issue. |
I'm looking into migrating from Rainloop to SnappyMail.
Currently we use Rainloop with sso. It is documented here
https://github.com/RainLoop/rainloop-webmail/wiki/SSO-example
In Applications.ini we set a custom login and logout link
https://github.com/Mailu/Mailu/blob/fe7397bedf2dd3d611f9f2837a1253133aa0b4f2/webmails/rainloop/defaults/application.ini#L11
This functionality appears to be missing in SnappyMail. I could not locate it in https://github.com/the-djmaze/snappymail/blob/master/snappymail/v/0.0.0/app/libraries/RainLoop/Config/Application.php. Is there an alternative for this in Snappymail?
I already found out that GetUserSsoHash is renamed to CreateUserSsoHash in SnappyMail. This functionality works as expected. I only miss how to configure a custom login/logout page in SnappyMail.
The text was updated successfully, but these errors were encountered: