Git Product home page Git Product logo

auditlogging's Introduction

Hi there πŸ‘‹

I'm Jan Ε koruba. I am working on open source projects primary related to identity and access control.

I am interested in @openid πŸ” β€’ @oauth2 πŸ”’ β€’ @dotnet πŸš€ β€’ @reactjs βš›

Support me πŸš€

It makes me so happy to see that my projects interest someone else and together we are building something useful.

If you like my work you can support me by donation on paypal or patreon. Thank you. πŸ‘

auditlogging's People

Contributors

maldworth avatar skoruba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

auditlogging's Issues

IAuditLoggingBuilder Extension Methods Explained/Examples Please

Hi @skoruba

Are you able to provide some additional explanation with regard to the following Extension Methods of the IAuditLoggingBuilder. Many of the Methods are self explanatory

I'm happy to contribute to the project in any way I can.

AddDefaultEventAction(this IAuditLoggingBuilder builder);

Not Sure what this does - omitting this from the builder event seemingly had no effect. Nor did setting UseDefaultAction to false as per below. The "Action" property of the AuditEvent was always populated with the same data.

  services.AddAuditLogging(
                options =>
                {
                    options.UseDefaultSubject = false;
                    options.UseDefaultAction = false;
                })
AddDefaultEventData(this IAuditLoggingBuilder builder);

No discernible difference when added or omitted

AddDefaultEventSubject(this IAuditLoggingBuilder builder);

No discernible difference when added or omitted. Also setting options.UseDefaultSubject = false; has not effect.

AddEventData<TEventSubject, TEventAction>(this IAuditLoggingBuilder builder)
            where TEventSubject : class, IAuditSubject
            where TEventAction : class, IAuditAction;

No Idea

FYI This project looks perfect for my requirements. I've been able to deploy a custom sink which publishes to a MessageQueue (RabbitMQ) and then in another Microservice I subscribe to the message queue and persist them to a SQL Database.

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

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

NoSql data store support?

Hi there, just wondering if it would be possible to configure AuditLogger to use a NoSql document data store with the currently available configuration options?
E.g so I could just store the output JSON as a record that could be queried.

I've used Azure Storage tables in the past for audit logs and the log tail pattern, with good results
https://docs.microsoft.com/en-us/azure/storage/tables/table-storage-design-patterns#log-tail-pattern as it's cheap at scale.

AuditLogging would be perfect for this to do the heavy lifting.

System.Text.Json?

System.Text.Json is available now. It has become part of ASP.Net Core, and can also be used with netstandard projects.

One of the benefits is improvement performance.

Maybe this is something you'd like to look into?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.