actix-web-middleware-slack

Crates.ioactix-web-middleware-slack
lib.rsactix-web-middleware-slack
version0.1.0
sourcesrc
created_at2022-09-16 07:05:31.170573
updated_at2022-09-16 07:05:31.170573
descriptionactix-web middleware for verifying requests from Slack.
homepage
repositoryhttps://github.com/yoshidan/actix-web-middleware-slack
max_upload_size
id667205
size15,167
Naohiro Yoshida (yoshidan)

documentation

https://docs.rs/actix-web-middleware-slack/latest/actix-web-middleware-slack/

README

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.
Commit count: 10

cargo fmt