line-3.1.0: Haskell SDK for the LINE API

Safe HaskellNone
LanguageHaskell2010

Line.Messaging.Webhook.Validation

Contents

Description

This module provides a function to check if a webhook request has a correct signature.

Synopsis

Signature validation

validateSignature :: ChannelSecret -> ByteString -> Signature -> Bool Source #

Provided a channel secret, request body and auth signature, it determines the request is properly signatured, which probably means it is sent from a valid LINE server.

For more details of webhook authentication, please refer to the LINE documentation.