serby/ctrl — pull request #111 by domharrington (2012-09-03 00:03:57+00:00)
Title: Refactor secure into an npm module https://github.com/domharrington/secure

In the refactor I modified a couple of things:

- isAllowed() is now always synchronous. Is there a reason it was taking a callback?
- Changed isAllowed() to not take a response parameter as it was never being used
- Modified the access control constructor to directly take the authenticate function from the model, instead of relying on it being an object with an authenticate function

Has the remember me functionality ever worked? The setAutoAuthenticationCookie() function in `secure` attempts to set the value of a cookie to the 'authenticationId' property of the user that is returned from authenticate(), which as far as I can see doesn't get set? What do you think this should be?