jaredhanson/passport — pull request #99 by tobiasmuecksch (2013-01-31 09:18:24+00:00)
Title: Add failure callback option to authenticate middleware

It is very useful to be able to react more abstract to an authentication failure than just redirecting the user or sending a predefined failure message (setting response header or evaluating the exact reason of failure for example).