Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Summary>This library implements .NET support for adaptive dialogs with Microsoft Teams</Summary>
<PackageProjectUrl>https://github.com/Microsoft/botframework-components/tree/main/packages/Teams/dotnet</PackageProjectUrl>
<ContentTargetFolders>content</ContentTargetFolders>
<PackageTags>msbot-component;msbot-action;msbot-trigger</PackageTags>
<PackageTags>bots;botframework;botbuilder;msbot-component;msbot-action;msbot-trigger;msbot-middleware</PackageTags>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\..\build\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<DelaySign>true</DelaySign>
Expand Down
28 changes: 28 additions & 0 deletions packages/Teams/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down