![]() ![]() The AuditApiAttribute can be configured with the following properties: Please refer to the data providers section on Audit.NET documentation. You can use one of the available data providers or implement your own. Security Audit Logs - Shows all of the recent actions pertaining to. The audit events are stored using a Data Provider. User List - List of all users associated with your account along with their activity. The AuditIgnore atribute is handled by the Action Filters, there is no need to add the AuditIgnoreActionFilter to the MVC filters when using a mixed approach.Only one Audit Event is generated per request, regardless of an action being processed by the Middleware and multiple Action Filters.If an action is reached, the Action Filter will include specific MVC context info to the Audit Event.Middleware will log any request regardless if an MVC action is reached or not.You can mix the Audit Middleware together with the Global Action Filter (and/or Local Action Filters). Public void ConfigureServices( IServiceCollection services) ![]() ![]() Middleware + Action Filters (Asp.Net Core): Adding the Audit Middleware together with the Global Action Filter (or Local Action Filters).ĭecorate your controller with AuditApiAttribute:.This method allow to audit request that doesn't get to the action filter. Middleware (Asp.Net Core): Adding the AuditMiddleware to the pipeline.This method allows more dynamic configuration of the audit settings. Global Action Filter: Adding the AuditApiGlobalFilter action filter as a global filter.Local Action Filter: Decorating the controllers/actions to be audited with AuditApi action filter attribute.The audit can be enabled in different ways: That intercepts the execution of action methods to generate a detailed audit trail.įor Asp.NET Core, it is also implemented as a MiddlewareĬlass that can be configured to log requests that does not reach the action filter (i.e. This library is implemented as an action filter environment vars, other settings, etc.) on application startup. to understand how people use the system when you can't go watch them. to research user activity for mischief, or 3. If your project targets the NET Core framework (NetStandard >= 1.6), there is no difference between using Audit.WebApi or to get information for debugging system errors. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |