Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
madCodes opened this issue Feb 25, 2021 · 0 comments

Comments

@madCodes
Copy link

madCodes commented Feb 25, 2021

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

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

No branches or pull requests

1 participant