No commit activity in last 3 years
No release in over 3 years
Rack middleware for verifying signature of LINE Bot callback
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 1
~> 0.6
~> 10.0
>= 3.0
 Project Readme

Rack::Verify::Line::Bot

CircleCI

Rack middleware which verifies signature of LINE Bot's webhook requests to ensure the hook is invoked from LINE.

Usage

# config.ru
require 'rack/verify/line/bot'

use Rack::Verify::Line::Bot, :secret => ENV['SECRET'],  # channel secret (mandatory)
                             :path   => '/hook'         # path of webhook URI

Options

  • :secret Specify channel secret. This option is mandatory.
  • :path Specify path component of webhook URL. If omitted, every POST requests will be examined.

Installation

Add this line to your application's Gemfile:

gem 'rack-verify-line-bot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-verify-line-bot

License

The gem is available as open source under the terms of the MIT License.