#actix-web-middleware #slack #verifying #requests #request #signing-secret

actix-web-middleware-slack

actix-web middleware for verifying requests from Slack

1 unstable release

0.1.0 Sep 16, 2022

#1044 in HTTP server

MIT license

14KB
218 lines

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.

Dependencies

~17–31MB
~541K SLoC