Improve extensibility of sign-up plugin for other plugins
This issues covers the following extension mechanisms to be developed so more use cases are supported by the sign-up process.
HashMap extension during sign-up confirmation flow
Objective: The handleSignupRequest
method takes and manages an addtional HashMap<String, String>();
per sign-up request so other plugins can handle account creation with account options, e.g. nicknames or service option
The UserAccountCreateListener
shall deliver the additional HashMap values captured during account request to listening plugins after account creation was succesfull
UserAccountCreateHandler
so user accounts can be, e.g. created within an ActiveDirectory using the dmx-ldap plugin
Introduce an Sketch:
Externl plugins registers a callback via SignupService.setUserAccountCreateHandler()
To be added something like this:
public interface UserAccountCreateHandler {
void userCreated(String userName, String email, HashMap<String, String> stuffs);
}
void setUserAccountCreateHandler(UserAccountCreateHandler handler);
Customizable email messages for third party plugins
Plugin should be able to take over certain mails and therefore need to get, e.g. specific secrets, like a token and link to a password reset endpoint.
Username, Link
FYI: @rsc