Skip to content

Commit

Permalink
Events example uses signing secret instead of legacy verifcation token
Browse files Browse the repository at this point in the history
  • Loading branch information
soxtoby committed Jan 3, 2020
1 parent c922655 commit dada4e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SlackNet.EventsExample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void ConfigureServices(IServiceCollection services)

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseSlackNet(c => c.VerifyWith("<your verification token here>"));
app.UseSlackNet(c => c.UseSigningSecret("<your signing secret here>"));
}
```

Expand Down

0 comments on commit dada4e1

Please sign in to comment.