balderdashy/sails — pull request #1700 by mikehostetler (2014-05-14 19:56:04+00:00)
Title: Small fix to attach Passport.js login methods to the req object

Passport.js doesn't nicely attach it's convenient login/logout methods to Request object, thus causing login requests to fail when made over Sockets unless you patch it.

Here's two StackOverflow questions detailing the issue a bit more:
* http://stackoverflow.com/questions/17365444/sails-js-passport-js-authentication-through-websockets
* http://stackoverflow.com/questions/21414610/authentication-methods-over-sockets

Hard-coding these methods for Passport.js only may be too much, I realize that, but I wanted to at least get this issue started so it wouldn't be lost.