Skip to content
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

EmailSenderProvider with global defaults for SMTP settings #46

Open
xgp opened this issue Oct 20, 2024 · 0 comments
Open

EmailSenderProvider with global defaults for SMTP settings #46

xgp opened this issue Oct 20, 2024 · 0 comments
Assignees
Labels
authit enhancement New feature or request

Comments

@xgp
Copy link
Member

xgp commented Oct 20, 2024

Implementation of EmailSenderProvider which behaves as the default, unless you specify variables to configure provider defaults. In this case, any realm that does not have an SMTP server set up will default to use the values set in the variables. This is useful in environments where a single SMTP server is used by many realms, and the Keycloak administrator does not want to distribute credentials to every realm administrator.

This can also be useful in environments where you want to allow realms to "test" Keycloak's email sending without having to configure an SMTP server. For this use case, include a counter in the distributed cache that is used to limit the number of emails that are sent using the global configuration, in order to prevent spammers from exploiting the free email capability. This can be configured with the max-emails variable.

Started in #41

@xgp xgp self-assigned this Oct 20, 2024
@xgp xgp added enhancement New feature or request authit labels Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authit enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant