From dada4e1a04cd49a1574d9e0607d28ba2ef4ba378 Mon Sep 17 00:00:00 2001 From: Simon Oxtoby Date: Fri, 3 Jan 2020 10:23:05 +1000 Subject: [PATCH] Events example uses signing secret instead of legacy verifcation token --- SlackNet.EventsExample/Startup.cs | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SlackNet.EventsExample/Startup.cs b/SlackNet.EventsExample/Startup.cs index b7fb03f..284666e 100644 --- a/SlackNet.EventsExample/Startup.cs +++ b/SlackNet.EventsExample/Startup.cs @@ -45,7 +45,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) if (env.IsDevelopment()) app.UseDeveloperExceptionPage(); - app.UseSlackNet(c => c.VerifyWith(Configuration["Slack:VerificationToken"])); + app.UseSlackNet(c => c.UseSigningSecret(Configuration["Slack:SigningSecret"])); app.UseMvc(); } diff --git a/readme.md b/readme.md index dd32d5a..8fa6969 100644 --- a/readme.md +++ b/readme.md @@ -77,7 +77,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IHostingEnvironment env) { - app.UseSlackNet(c => c.VerifyWith("")); + app.UseSlackNet(c => c.UseSigningSecret("")); } ```