-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add authentication to login fakesmtp page #60
Comments
Will consider it in a future release. Contribution would also be appreciated ;) |
+1, this would be useful |
Please make this optional. Our use case would be crippled with forced authentication. |
@gessnerfl In our case, we run test builds of the application publicly, for QA and the development team. With a secure web UI, it would be calmer :) |
Also, we are using it for QA and UAT purposes and it is a public server in the company that many users can access, so simple authentication might be good at least. |
Just a thought: We also use fakesmtp, which contains non-public data in testcases. Therefore we added traefik as a reverse proxy with basic authentication before and made fakesmtp website accessible only through traefik, see https://doc.traefik.io/traefik/middlewares/http/basicauth/ This is our docker-compose file (no exposed ports for web interface):
|
Not sure if it is useful for anybody but you can implement a quick and dirty, but easy solution with this class. You could redirect to a login page if the right cookie is not found to set the right cookie. package proxy; import com.sun.net.httpserver.HttpExchange; import java.io.IOException; public class ReverseProxyServer {
} |
Please add login page to authenticate fakesmtp interface. Authentication could be optional and Username and password can canfigure in application.properties.
The text was updated successfully, but these errors were encountered: