<div dir="ltr">We currently have the low-level Event Listener SPI, but IMO it&#39;s not very user friendly.<div><br></div><div>I propose we add two higher level SPIs with a more user friendly API. The SPIs would be:</div><div><br></div><div>User Event SPI with the following events:</div><div><br></div><div>* User Created (include details on why it was created, i.e. self register, idp, admin)</div><div>* User Profile Updated</div><div>* User Credentials Updated</div><div>* User Deleted</div><div><br></div><div>Login Event SPI with the following events:</div><div><br></div><div>* Login</div><div>* Login Failure</div><div>* Logout (include session timeout)</div><div>* Client Login</div><div><br></div><div>We should use the new SPIs to also implement a number of built-in emails that can be sent for users. Each email would be optional. Examples could be:</div><div><br></div><div>* Welcome mail</div><div>* Login on new device notification<br></div><div>* Login failure notification</div><div><div>* Password updated notification</div></div><div><br></div></div>