Skip to content

dayflower/rack-verify-line-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Rack middleware just for verifying signature of LINE Bot callback

Resources

License

Stars

Watchers

Forks

Packages

No packages published