Configuring Default Notification Handler in WSO2 Identity Server to send Emails and SMSes

Configuring in WSO2 IS 5.8.0 and prior versions

module.name.13=default.notification.senderdefault.notification.sender.subscription.1=TRIGGER_SMS_NOTIFICATIONdefault.notification.sender.subscription.2=PRE_DELETE_USERdefault.notification.sender.subscription.TRIGGER_SMS_NOTIFICATION.stream=id_gov_sms_notify_stream:1.0.0default.notification.sender.subscription.TRIGGER_SMS_NOTIFICATION.claim.mobile=http://wso2.org/claims/mobile
default.notification.sender.subscription.TRIGGER_SMS_NOTIFICATION.stream=id_gov_sms_notify_stream:1.0.0
default.notification.sender.subscription.PRE_DELETE_USER.notification_template=accountDeleteConfirmation
default.notification.sender.subscription.TRIGGER_SMS_NOTIFICATION.claim.<sample_claim>=<sample_claim_uri>
default.notification.sender.subscription.TRIGGER_SMS_NOTIFICATION.testcustomattribute=testattributevalue

Configuring in WSO2 IS 5.10.0 and upper versions

[identity_mgt.events.schemes.'default.notification.sender']subscriptions=["PRE_DELETE_USER","TRIGGER_SMS_NOTIFICATION"]
default.notification.sender.subscription.1=TRIGGER_SMS_NOTIFICATION
default.notification.sender.subscription.2=PRE_DELETE_USER
[identity_mgt.events.schemes.'default.notification.sender'.properties]
'subscription.PRE_DELETE_USER.stream' = "id_gov_notify_stream:1.0.0"
[identity_mgt.events.schemes.'default.notification.sender'.properties]'subscription.PRE_DELETE_USER.notification_template' = "accountDeleteConfirmation"
[identity_mgt.events.schemes.'default.notification.sender'.properties]'subscription.PRE_DELETE_USER.notification_template' = "accountDeleteConfirmation"
[identity_mgt.events.schemes.'default.notification.sender'.properties]
'subscription.<event_name>.claim.<sample_claim>'="<sample_claim_uri>"
[identity_mgt.events.schemes.'default.notification.sender'.properties]
'subscription.PRE_DELETE_USER.claim.email'="http://wso2.org/claims/email"
[identity_mgt.events.schemes.'default.notification.sender'.properties]
'subscription.TRIGGER_SMS_NOTIFICATION.testcustomattribute'="testattributevalue"

Configuring in WSO2 IS 5.9.0

# Custom event configuration.{% set custom_count = count|length %}
{% for custom_event in event_handler %}
{% set index = custom_count + loop.index %}
module.name.{{index}}={{custom_event.name}}
{% for subscription in custom_event.subscriptions.toList()%}{{custom_event.name}}.subscription.{{loop.index}}={{subscription}}{% endfor %}{% for property_name,property_value in custom_event.properties.items()%}{{custom_event.name}}.{{property_name}}={{property_value}}{% endfor %}{% endfor %}
[[event_handler]]
name="default.notification.sender"
subscriptions=["PRE_DELETE_USER","TRIGGER_SMS_NOTIFICATION"]
[event_handler.properties]
'subscription.PRE_DELETE_USER.claim.email'="http://wso2.org/claims/email"
'subscription.TRIGGER_SMS_NOTIFICATION.testcustomattribute'="testattributevalue"

A big eager beaver

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

⭐️LADRUS Weekend Events: Sunday tournament

GKE Operations on Google Cloud

IP Address management in GKE — https://cloud.google.com/blog/products/containers-kubernetes/ip-address-management-in-gke

How To Become An AWS Certified Solution Architect (Associate Edition)

Glimpse to the customisation of Ubuntu.

The basics of LaTeX

An Introduction to Streaming ETL on Azure Databricks using Structured Streaming & Databricks Delta…

Python argparse custom action and custom type

Being a startup CTO in Stuttgart responsible for evaluating applicants and developing developers to…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sominda Gamage

Sominda Gamage

A big eager beaver

More from Medium

Build Customised Zeppelin Docker Image

Introducing OpsTree Tomcat Image

ElastAlert 2 for OpenShift 4.9

Multi-architecture container images for Amazon ECR