bnoguchi/everyauth — pull request #247 by bigokro (2012-04-21 18:18:57+00:00)
Title: Rudimentary support for the Facebook Canvas

I added changes to facebook.js to support Facebook Canvas apps:

http://developers.facebook.com/docs/appsonfacebook/tutorial/

This is related to issue #146 (https://github.com/bnoguchi/everyauth/issues/146)

This version requires two new configurations:
* canvasPath: the server path that Facebook will post to when a user goes to your app (what you configure as Canvas URL in Facebook, minus the hostname). Analogous to entryPath.
* canvasPage: the URL that users use to access your app on Facebook, configured as Canvas Page in Facebook.

There are several "to-do's" in here:
* Make "/auth/facebook/canvas" the default canvasPath
* Validate the signed_request that comes from Facebook for security reasons
* Support querystring data on the canvas page (I'm not sure yet what is needed here, so I haven't bothered)