Skip to content

herimedia/rack-facebook-signed-request

 
 

Repository files navigation

= rack-facebook-signed-request

Simple rack middleware which parses and verifies the signed_request canvas parameter.

See:

http://developers.facebook.com/docs/authentication/canvas

== Installation

use Rack::Facebook::SignedRequest, { :secret => "yourappsecret" } do |env|
  # Optional condition block must return a true-ish value for SignedRequest to actually do
  # anything. If no block is given, the middleware is always run (i.e. it's active by default).
  env["HTTP_HOST"] =~ /^facebook\./
end

== Contributing to rack-facebook-signed-request
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2010 . See LICENSE.txt for
further details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%