Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
This section describes how to configure the Azure Bot Service (ABS), the Entra App Registration and the Teams manifest to enable Single-Sign-On (SSO) for your Teams app.
Tip
Let an AI assistant run this for you
The teams-dev skill can orchestrate the full SSO setup for you — install it in your AI coding assistant and say "set up SSO for my Teams bot".
Prerequisites
Before starting SSO configuration, ensure you have:
An Azure-managed Azure Bot Service resource and its associated Entra App Registration (Application ID / Client ID and Tenant ID).
To set up using CLIs: the
azCLI and the Teams Developer CLI installed and authenticated.Note
CLI users: migrate first if your bot is Teams-managed SSO requires an Azure-managed bot because the OAuth connection lives in Azure Bot Service. If you registered with
teams app create(default Teams-managed), migrate your bot first:teams app bot migrate <appId> --subscription <id> --resource-group <rg>Your
CLIENT_ID,CLIENT_SECRET, andTENANT_IDstay the same. See Bot Locations for details.
Configure the Entra App Registration for SSO
You need an Entra ID App Registration to configure the OAuth Connection in Azure Bot Service. If you don't already have one, follow the Create the Entra App Registration guide first.
- Add the Bot Framework redirect URI. From your App Registration, navigate to Authentication and add a Web platform redirect URI with the value
https://token.botframework.com/.auth/web/redirect
- Configure the API. From
Expose an API, clickAddto Application ID URI and set the value toapi://<Your-Application-Id>. Add the scopeaccess_as_userand select who can consent.
- Authorize the client applications for SSO. To enable the Teams clients, desktop and web, to perform the SSO flow you must add the following client applications to the scope defined before: Teams Desktop
1fec8e78-bce4-4aaf-ab1b-5451cc387264and Teams Web5e3ce6c0-2b1f-4285-8d4b-75ee78787346
Troubleshooting
If you encounter SSO errors, see the Troubleshooting guide for common issues and solutions.