Crates.io | actix-web-middleware-slack |
lib.rs | actix-web-middleware-slack |
version | 0.1.0 |
source | src |
created_at | 2022-09-16 07:05:31.170573 |
updated_at | 2022-09-16 07:05:31.170573 |
description | actix-web middleware for verifying requests from Slack. |
homepage | |
repository | https://github.com/yoshidan/actix-web-middleware-slack |
max_upload_size | |
id | 667205 |
size | 15,167 |
actix-web middleware for Verifying requests from Slack
[dependencies]
actix-web-middleware-slack = <version>
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;
}
This project is licensed under the MIT license.
Contributions are welcome.