-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add botbuilder-slack-adapter project * Ported ISlackAdapterOptions Interface Removed unnecessary using's * Updated references
- Loading branch information
1 parent
f2ac3ba
commit e604a67
Showing
4 changed files
with
71 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,56 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace botbuilder_slack_adapter | ||
{ | ||
interface ISlackAdapterOptions | ||
{ | ||
/// <summary> | ||
/// Legacy method for validating the origin of incoming webhooks. | ||
/// </summary> | ||
string VerificationToken { get; } | ||
|
||
/// <summary> | ||
/// A token used to validate that incoming webhooks originated with Slack. | ||
/// </summary> | ||
string ClientSigningSecret { get; } | ||
|
||
/// <summary> | ||
/// A token (provided by Slack) for a bot to work on a single workspace. | ||
/// </summary> | ||
string BotToken { get; } | ||
|
||
/// <summary> | ||
/// The oauth client id provided by Slack for multi-team apps. | ||
/// </summary> | ||
string ClientId { get; } | ||
|
||
/// <summary> | ||
/// The oauth client secret provided by Slack for multi-team apps. | ||
/// </summary> | ||
string ClientSecret { get; } | ||
|
||
/// <summary> | ||
/// A an array of scope names that are being requested during the oauth process. Must match the scopes defined at api.slack.com. | ||
/// </summary> | ||
string[] Scopes { get; } | ||
|
||
/// <summary> | ||
/// The URL users will be redirected to after an oauth flow. In most cases, should be `https://<mydomain.com>/install/auth`. | ||
/// </summary> | ||
string RedirectUri { get; } | ||
|
||
/// <summary> | ||
/// A method that receives a Slack team id and returns the bot token associated with that team. Required for multi-team apps. | ||
/// </summary> | ||
/// <param name="TeamId">Team ID</param> | ||
/// <returns></returns> | ||
Task<string> GetTokenForTeam(string TeamId); | ||
|
||
/// <summary> | ||
/// A method that receives a Slack team id and returns the bot user id associated with that team. Required for multi-team apps. | ||
/// </summary> | ||
/// <param name="TeamId">Team ID.</param> | ||
/// <returns></returns> | ||
Task<string> GetBotUserByTeam(string TeamId); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
Botkit/botbuilder-slack-adapter/botbuilder-slack-adapter.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace>botbuilder_slack_adapter</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Bot.Builder" Version="4.4.3" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Botkit\BotkitLibrary.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |