WSO2 Products: Custom Notification Module for Account Management in Identity Server
This blog post describes how you can add custom notification modules for account recovery and validation using identity management features.
Join the DZone community and get the full member experience.Join For Free
You can configure any other notification modules with WSO2IS or extend the existing email sending module; WSO2IS contains an email sending module with WSO2IS which is based on Axis2.
Implement custom notification module by implementing the
org.wso2.carbon.identity.mgt.NotificationSendingModuleinterface. You can find a sample project from here. This module is sending a JSON payload to a given endpoint as the notification.
Copy your implementation as a .jar file into the
Register the module using
Please add following property in to the file.
5. Try out by sending the notification type as JSON. Please note the value “JSON” is configured in the custom module as the
notifyUser() method of your implementation would be executed. In sample module, you can see that it is sent a JSON to a given end-point url.
Published at DZone with permission of Asela Pathberiya, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.