wso2 identity server - sending email when user changed password - wso2

I am using WSO2 IS 5.3.0 server and I am wondering if it is possible to send an email when user changes his password or any other attribute, etc., email.? Is this feature already built in WSO2 IS (I couldn't find anything in WSDL services) or is it then possible to extend something?
Any comments about this issue would be appreciated.

Please do the following steps to achieve this task.
Write a custom user operation event listener extending the AbstractUserOperationEventListener.java
Implement the doPostUpdateCredential method. doPostUpdateCredential
Trigger notification event handler to send a notification to the user. EventHandlerNotification

Related

How to send account confirmation e-mail after self sign up on WSO2 AM

Hi i Want in API manager WSO2 in store section after user registered Send email with link to confirm account
am version: 2.5.0
Please Help Me
Your requirement can be achieved through a custom workflow extension. By default there is a custom workflow to the user signup process. You may need to extend that to send an email. Please refer to this.

How to send account confirmation e-mail after self sign up on WSO2 API Manager

We managed to lock the user store account after self registering an account in the store, but the only way we figured it out to unlock the account is using the admin console (CARBON). We've been trying to make the confirmation e-mail work after self sign up, but we had no luck until now. How could we achieve that?
We are using the WSO2 API Manager 2.5.0. Community Edition.
I am also stopped in this point.
I only see how to configure this on WSO2 Identity Server, here.
But how can I do the same in WSO2 API Manager?
I guess using workflows, or maybe through platform configuration, but it is not explained anywere.
Same question is asked also here
It is reported as bug here
Could someone bring light this issue?
This is possible with the use of user signup workflow in APIM [1]. As explains in [2], you can send an email when a user sign up request comes or when a user sign up request completes.
https://docs.wso2.com/display/AM260/Adding+a+User+Signup+Workflow
https://docs.wso2.com/display/AM260/Customizing+a+Workflow+Extension

"intercept" login & registration events in WSO2 Identity Server

Is there a way to "intercept" login or registration event in WSO2 Identity Server?
I know that wso2is architecture is quite complex, also there are some extension points, but I didn't find any information regarding how intercept those events.
I'd like to replicate something available in Gigya that allows to configure an API endpoint to call when one of those events happen (passing some information regarding the user)
Thanks
You can write a userstore listener to get this done. More details are available on wso2 official documentation.
https://docs.wso2.com/display/IS530/User+Store+Listeners

Additional business logic to send an email in WSO2 DAS flow

I'm developing a CEP application prototype using WSO2 DAS. As a result of my flow, I have a final event stream (attr.: email address, subject, text,...) wich I want to send by mail to the address from the attribute of current event. But using WSO2 DAS I can send only simple letter to the fix address list.
I've started to read WSO2 EI documentation. I suppose, I will be able to use HTTP publisher in WSO2 DAS to send request to WSO2 EI and develop additional logic there.
Is it right way for my case?
Alex,
In DAS email publisher's 'to email address' and subject are treated as dynamic fields which means you can injects values from event to those fields. To do that you can use double curly braces. Ex:
Subject = {{subject}}
https://docs.wso2.com/display/DAS310/Email+Event+Publisher
Hope this answers your question.
Yes! Send message to wso2ei give you potential change your notification to sms or logs it or add guarantee delivery for your notification. For example whats would be happen if after event your email server will be not respond. In wso2ei you can do sequence of it.

WSO2 Message Broker - Authorization

I am trying to implement an authorization mechanism on WSO2 Message Broker, but I am pretty new to WSO2 products. My goal is to implement MQTT Topic Authorization in the same manner it is implemented for JMS topics. Actually I am looking the code on the "andes" repository and "carbon-business-messaging" repository, and I would be very grateful if you can suggest me where to start. (that's a lot of code to look at)
What I want to do is to allow a particular user to publish/subscribe topics using the User Role permissions, so that even if someone connects to the Broker, he/she can't subscribe or publish without permission.
You can see how the Authentication is happening in MQTT from here.
You can look at the following method in ProtocolProcessor.java class. This is located in andes core.
processSubscribe(ServerChannel session, SubscribeMessage msg, String clientID, boolean cleanSession)
Also to get an idea about the how authorization Done in JMS messaging you can refer AndesAuthorizationHandler.java Class from here. This is located in carbon-business-messaging repository.