Verify Nexmo Signatures Rack Middleware
Integrate this middleware into your application to verify Nexmo signatures.
Dependencies
This middleware utilizes the following dependencies:
Installation and Usage
The verify signature middleware can be used standalone or integrated into a Ruby application. The middleware will return a 403 HTTP status code if the signature is not valid, and will continue the application if it is valid.
As a standalone application
Install the gem on your system:
$ gem install verify_nexmo_signature
Then require it from within your config.ru Rack configuration:
use VerifyNexmoSignature::Middleware
An example config.ru can be found in the examples folder. More information on getting up and running with Rack can be found at the Rack GitHub repository.
Mounted into a Rails Application
Require it in your Gemfile:
gem verify_nexmo_signature
And then add the middleware to your config/application.rb file to initialize it with your application:
config.middleware.use VerifyNexmoSignature::Middleware
Contributing
We ❤️ contributions from everyone! Bug reports, bug fixes and feedback on the library is always appreciated. Look at the Contributor Guidelines for more information.
License
This project is under the MIT LICENSE.