Rack middleware for use with "Third Party Applications". It checks signature and passes the parsed_instance param to your application.
Add this line to your application's Gemfile:
gem 'wix-apps'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wix-apps
Add Wix::Apps::SignedInstanceMiddleware as any other middleware.
use Wix::Apps::SignedInstanceMiddleware, secured_paths: ['/yours', '/paths'], secret_key: 'secret_key'
In application.rb, add:
config.middleware.use Wix::Apps::SignedInstanceMiddleware,
secured_paths: ['/yours', '/paths'], secret_key: 'your-secret-key'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request