gamesthatgive / rack-facebook-signed-request Goto Github PK
View Code? Open in Web Editor NEWRack middleware for verifying and parsing Facebook signed_request param on canvas applications
License: MIT License
Rack middleware for verifying and parsing Facebook signed_request param on canvas applications
License: MIT License
= rack-facebook-signed-request Rack middleware which parses and verifies the signed_request canvas parameter and FB JS cookie. See: http://developers.facebook.com/docs/authentication/canvas Required Options: You must specify the following options to enable the middleware: - app_id - secret Additional Custom Options: You can also activate the following options: - inject_facebook (default false): This will automatically inject the asynchronous FB JS SDK include into the response body. Assuming you've enabled the Facebook script injection, you can customize these options: - cookie (default true): Configure the FB JS SDK with cookie support - status (default true) - lang (default 'en_US') - xfbml (default true) Note that this will also add the FB XML namespace attribute into the root html element of the response. RESTful behavior: The Rack middleware will also convert any POST requests containing the signed_request parameter to GET.
Sorry to bother you, but this middeware is exactly what i was looking for. One problem though this is my first usage of a rack middleware app and i'm unable to figure out on my own how to add this to my config.ru.
I added the gem to my gem file but don't know how to add this to config.ru
Care to help me out?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.