12 Commits

Author SHA1 Message Date
7a78b8e172 fix: change module name corresponding to version 2025-09-25 19:15:20 +02:00
55d6efb879 feat: add webhook events and include IP address and user agent in event data (#2048) 2025-02-13 11:53:25 +01:00
9836c48f72 fix: webhooks missing triggers and events
Add missing email create webhook trigger and add events and trigger 
calls for username changes. Update readme with missing/new webhook 
events.
2025-01-30 12:47:14 +01:00
38a11deffa fix: only use transaction connection in a transaction (#1598)
* fix: only use transaction connection in a transaction

* test: fix webhook tests
2024-08-28 11:56:09 +02:00
def7ad37a0 [FEAT] disable email delivery (#1419)
* feat: add config to disable email delivery

* chore: update config schema

* docs: add new config parameter

* test: fix test

* fix: rename email webhook event

* docs: Update backend/docs/Config.md

Co-authored-by: Lennart Fleischmann <67686424+lfleischmann@users.noreply.github.com>

---------

Co-authored-by: Lennart Fleischmann <67686424+lfleischmann@users.noreply.github.com>
2024-04-18 15:15:02 +02:00
ae7bae5091 fix(webhooks): fix HasEvent logic
* fix premature return in the check which skips all following events when the first one was false
* add test cases

Closes: #1354
2024-02-19 10:55:14 +01:00
1d27a39a49 feat(webhooks): add disable option for time expiration
* readd User and Email event
* add config option for disabling expiration => default value expiration is disabled

Related to: #692
2024-01-25 16:18:52 +01:00
73bf2a4b1e fix(tests): fix timing issues
* move now BEFORE updating
* add Expiration Duration to webhook

Related to: #692
2024-01-25 13:32:34 +01:00
c9994bdc3a fix(review): fix review findings
* admin api: make email primary when user has no emails
* utils: move get updated user and webhook trigger to utils to reduce duplicated code
* events: remove unused user and email event - Check is replaced with string variant
* remove unused dtos
* fix tests after changes
* webhook tests: switch to test.Suite instead of TestPersister -> added deprecation annotation to test.NewPersister
* Email Verification: Fix trigger of webhook when email verification is enabled and a email is created but not validated

Closes: #692, #1051
2024-01-25 13:20:56 +01:00
fab3bb4864 fix(webhooks): add event param to testManager
Closes #692
2024-01-17 15:32:41 +01:00
3cafb66754 feat(webhooks): add tests and fix review issues
* add tests for webhooks
* improve error handling when context does not contain webhook manager
* add logging to worker and fix nesting error overwrite
* remove enable and disable methods in favor for update method
* move data in jwt from subject claim to custom `data` claim
* add event in jwt to custom `evt` claim
* change webhook trigger to only fire once per hook (was once per subscribed event in hook before)

Closes #692
2024-01-17 14:19:10 +01:00
45cbd74314 feat(webhooks): add webhooks
* add webhooks settings to config
* add webhooks entity for database
* add endpoints for webhooks
* add worker for asynchronously executing webhooks
* add trigger for events to user change/create/delete users/emails

Closes #692
2024-01-12 16:04:31 +01:00