actix-web-middleware-slack 0.1.0

actix-web middleware for verifying requests from Slack.
Documentation

actix-web-middleware-slack

actix-web middleware for Verifying requests from Slack

CI

Installation

[dependencies]
actix-web-middleware-slack = <version>

Quick Start

use actix_web::{App, HttpServer, web};
use actix_web_middleware_slack::Slack;

#[tokio::main]
async fn main() {
    let server = HttpServer::new(move || {
        // https://api.slack.com/authentication/verifying-requests-from-slack#verifying-requests-from-slack-using-signing-secrets__app-management-updates
        let signing_secret = "Signing Secret";
        App::new()
            .wrap(Slack::new(signing_secret))
    }).bind(("0.0.0.0", 8090)).unwrap().run();
    server.await;
}

License

This project is licensed under the MIT license.

Contributing

Contributions are welcome.

  1. Fork this repository.
  2. Make changes, commit to your fork.
  3. Send a pull request with your changes.
  4. Confirm the success of CI.