skoruba / AuditLogging

🕊️ Simple audit logging for .NET Core with EntityFramework Core
MIT License
114 stars 38 forks source link

Use AuditLogging to log events raised by Identity server like "UserLoginSuccessEvent" and others. #12

Open madCodes opened 3 years ago

madCodes commented 3 years ago

I tried setting up AuditLogging in IdentityServer4.STS.Identity project and inject IAuditEventLogger in custom AuditEventSink. But it breaks on startup at app.UseIdentityServer().

at Skoruba.AuditLogging.Events.Http.HttpAuditSubject..ctor(IHttpContextAccessor accessor, AuditHttpSubjectOptions options) at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)

Any plans to accomodate Identity server events to audit table?

sorry, I was supposed to post in the IdentityServer4.Admin repo :(