simple-login / app

The SimpleLogin back-end and web app
https://simplelogin.io
GNU Affero General Public License v3.0
4.83k stars 411 forks source link

Add sync events #2113

Closed cquintana92 closed 1 month ago

cquintana92 commented 1 month ago

This PR performs the following changes:

  1. Adds a new proto/events.proto file that defines events that a party may want to consume.
  2. Adds a new app/events/event_listener.py that exposes an EventListener for dispatching events from within the app.
  3. Adds a new event_listener.py entrypoint that can act as an event consumer or as a dead-letter consumer for the pending events.
  4. Adds the event emit calls within the code.