79654395

Date: 2025-06-05 11:59:01
Score: 1
Natty:
Report link

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:

  1. Manifest 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": []
  1. OAuth Connection Name matches in code and Azure
# 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",
        )
    ),
)
  1. 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:

If you’ve checked these and still see the error, try clearing Teams cache or reinstalling the app.

Thank you,

Karan Shewale.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KARAN