From 07bd43ed104a327edb190d1dc96914889eeaef46 Mon Sep 17 00:00:00 2001 From: Eric Dahlvang Date: Thu, 13 May 2021 12:09:11 -0700 Subject: [PATCH 1/2] Add tags to Teams component project file --- packages/Teams/dotnet/Microsoft.Bot.Components.Teams.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Teams/dotnet/Microsoft.Bot.Components.Teams.csproj b/packages/Teams/dotnet/Microsoft.Bot.Components.Teams.csproj index 467e2a77c6..77b840a420 100644 --- a/packages/Teams/dotnet/Microsoft.Bot.Components.Teams.csproj +++ b/packages/Teams/dotnet/Microsoft.Bot.Components.Teams.csproj @@ -8,7 +8,7 @@ This library implements .NET support for adaptive dialogs with Microsoft Teams https://github.com/Microsoft/botframework-components/tree/main/packages/Teams/dotnet content - msbot-component;msbot-action;msbot-trigger + bots;botframework;botbuilder;msbot-component;msbot-action;msbot-trigger;msbot-middleware true ..\..\..\build\35MSSharedLib1024.snk true From 0d3e57228247729046623897558a131bd56fa55a Mon Sep 17 00:00:00 2001 From: Eric Dahlvang Date: Thu, 13 May 2021 19:24:02 -0700 Subject: [PATCH 2/2] Add config information to readme for Teams component --- packages/Teams/dotnet/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/packages/Teams/dotnet/README.md b/packages/Teams/dotnet/README.md index 7394c558dc..9128e2c1b1 100644 --- a/packages/Teams/dotnet/README.md +++ b/packages/Teams/dotnet/README.md @@ -12,6 +12,34 @@ Once you've installed the package using [Bot Framework Composer](https://docs.mi Make sure you've enabled the connection to Microsoft Teams in the `Connections` tab of your `Project Settings` in Composer. +### Usage + +Once installed you should find a Microsoft.Bot.Components.Team in the Components section of the config. In order to use the Single Sign On Middleware, ensure there is also a root level section titled "Microsoft.Bot.Components.Team", with useSingleSignOnMiddleware set to true and the proper Bot Oauth connectionName: + +```json + "runtimeSettings": { + "components": [ + { + "name": "Microsoft.Bot.Components.Teams", + "settingsPrefix": "Microsoft.Bot.Components.Teams" + } + ], + ... + }, + + "Microsoft.Bot.Components.Teams":{ + "useSingleSignOnMiddleware": true, + "connectionName": "TestTeamsSSO" + }, + + "CosmosDbPartitionedStorage": { + "authKey": "YourCosmosDbAuthKey", + "containerId": "YourBotStateContainer", + "cosmosDBEndpoint": "https://yourcosmosdb.documents.azure.com:443/", + "databaseId": "YourDatabaseName" + }, +``` + ## Learn more Learn more about [creating bots for Microsoft Teams](https://docs.microsoft.com/microsoftteams/platform/bots/what-are-bots).