Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Signature Validation #1

Open
mathdroid opened this issue Dec 25, 2016 · 1 comment
Open

Add Signature Validation #1

mathdroid opened this issue Dec 25, 2016 · 1 comment
Assignees

Comments

@mathdroid
Copy link
Owner

According to the docs, valid requests from LINE platforms are the ones with X-Line-Signature header matching their digest value in request body.

https://devdocs.line.me/en/#signature-validation

@mathdroid mathdroid self-assigned this Dec 25, 2016
@mathdroid
Copy link
Owner Author

One way to do it is by adding a verify function property to the bodyParser.json()'s first param. Then we will initialize the webhook conditionally (whether it uses the verification middleware or not) based on a verifySignature option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant