Skip to content

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

@madCodes

Description

@madCodes

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 :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions