square / rails-auth

Modular resource-based authentication and authorization for Rails/Rack
Apache License 2.0
291 stars 23 forks source link

Rails::Auth::Monitor::Middleware #33

Closed tarcieri closed 8 years ago

tarcieri commented 8 years ago

Adds a middleware which fires a callback for every request which includes the Rack environment and whether or not the request was authorized.

Useful for logging AuthZ status of each request and/or reporting AuthZ failures to e.g. an alerting system.

tarcieri commented 8 years ago

FYI @thirstscolr @somethingnew2-0 @stouset @markfunk