1 unstable release
0.1.0 | Sep 16, 2022 |
---|
#1178 in HTTP server
14KB
218 lines
actix-web-middleware-slack
actix-web middleware for Verifying requests from Slack
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.
- Fork this repository.
- Make changes, commit to your fork.
- Send a pull request with your changes.
- Confirm the success of CI.
Dependencies
~15–26MB
~438K SLoC