Skip to content

cotrin8672/ktor-line-webhook-plugin

Repository files navigation

Line Webhook Signature Validation Plugin

The LineWebhook plugin is used to verify the signature of incoming webhooks. This ensures that the webhooks are from a trusted source.

Maven Central Version

Gradle Configuration

implementation("io.github.cotrin8672:ktor-line-webhook-plugin:1.5.0")

Usage

Install this plugin only on endpoints that receive webhooks.

route("/callback") {
    install(DoubleReceive)
    install(LineSignatureVerification) {
        channelSecret = System.getenv("CHANNEL_SECRET")
    }
    post {
        call.respond(HttpStatusCode.OK)
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages