School-Yard/Library — pull request #1 by particlebanana (2012-10-16 21:59:56+00:00)
Title: OAuth Authentication Library Card

This update adds support for creating login/logout paths in a Card-Catalog based app.

It's made up of multiple parts:

- Library file that is used in a Recess app for setting up the Passport Strategy
- Card that creates links for logging in, OAuth callbacks and logging out
- Middleware that can be included to ensure a page is authenticated

I'm pushing an update to Node-CMS that includes all the code needed to use with a Recess app.

The middleware works like this:
```
var Library = require('library');

module.exports = {
// Some Card Properties

'before': [
Library.middleware.Authenticate()
]
}
```

It also uses ENV variables for the OAuth keys and secrets and what not. I'll send you my config file that you can source.