Thank you for the details. The error usually means there’s a mismatch or missing configuration between your Teams app manifest, Azure AD app registration, or OAuth connection.
Key things to check:
botId
matches Azure AD App Registration// manifest.json
"bots": [
{
"botId": "<your-azure-ad-app-client-id>",
"scopes": [
"personal",
"team",
"groupChat"
],
"supportsFiles": false,
"isNotificationOnly": false
}
],
"validDomains": []
# In your bot code (Python)
OAUTH_CONNECTION_NAME = "YourConnectionName" # Must match Azure Bot OAuth connection name
# When sending OAuth card
await step_context.prompt(
OAuthPrompt.__name__,
PromptOptions(
prompt=Activity(
type=ActivityTypes.message,
text="Please sign in",
)
),
)
Azure Bot OAuth Connection Settings
In Azure Portal, go to your Bot resource > Settings > OAuth Connection Settings.
The connection name must match what you use in your code.
References:
Bot authentication in Teams: - https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/add-authentication?tabs=dotnet%2Cdotnet-sample
Configure OAuth connection settings : - https://learn.microsoft.com/en-us/exchange/configure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help
If you’ve checked these and still see the error, try clearing Teams cache or reinstalling the app.
Thank you,
Karan Shewale.