* feat: add custom user ID
Add custom user ID to a user. This custom user ID is only used for verifying assertions from imported passkeys.
* test: fix build
* feat: add new user properties to import
* feat: improve error messages on import
* feat: add customUserHandle to webauthn credential
* chore: change DB schema for user handle
Change the DB schema to restrict a user handle to only one user.
* fix: add missing value in sql migration statement
* chore: remove unused variables
Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>
* chore: change migration
Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>
* fix: always use custom user handle if available
* chore: simplify getting the webauthn user
* fix: fix unique constraint on user handle
Apply unique constraint to the column handle in table webauthn_credential_user_handles.
* feat: add custom user handle to user import
* chore: typos
* fix: fix user import with multiple credentials
Fix user import with multiple credential and the same user handle. Check if the user handle already exists and associate the credential with it otherwise create a new user handle in the database.
---------
Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>
* 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