Skip to content

Feature/extensible events#11

Merged
nachoRSK merged 2 commits into
mainfrom
feature/ExtensibleEvents
May 6, 2026
Merged

Feature/extensible events#11
nachoRSK merged 2 commits into
mainfrom
feature/ExtensibleEvents

Conversation

@lkimberrsk
Copy link
Copy Markdown
Contributor

Added ability to include custom Duende events.

This is done in DI when setting up the AuditSink to include an additional list of custom events and their respective adapters, e.g.:
builder.Services.AddSingleton<Duende.IdentityServer.Services.IEventSink>(_ => new AuditSink(auditRecorder, new Dictionary<Type, Func<Event, IAuditEventArguments>> { [typeof(UserCreatedEvent)] = evt => new UserCreatedEventAdapter((UserCreatedEvent)evt) }) );

@nachoRSK nachoRSK merged commit dfd0d77 into main May 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants