Skip to content

Sails Js Auditor PROJECT hook intercepting both requests and responses and allowing audit/logging/any custom functioanlity

License

Notifications You must be signed in to change notification settings

Akrion/sails-hook-auditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

sails-hook-auditor

Sails Js Auditor PROJECT hook intercepting both requests and responses and allowing audit/logging/any custom functioanlity

This is a Sails js porject hook which allows the interception of the requests and responses and when both are decorated with "audit" object it will intercept it. One use case for this is when a request or response do contain "audit" in their payload log it for auditing purposes. But as you can imagine it could serve other purposes.

Please note this is a project hook and not a "installable" hook. It must reside under api/hook folder in your project.

Also current defaults are the actual key you would like to intercept from the payload (currently set to "audit") and also the option ("clearResponseAuditOnClient") to remove the object from the response so that it does not reach the client.

About

Sails Js Auditor PROJECT hook intercepting both requests and responses and allowing audit/logging/any custom functioanlity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published