microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.47k stars 2.44k forks source link

OAuth not working in Teams #6595

Closed xncbf closed 1 year ago

xncbf commented 1 year ago

It's exactly the same problem this person is having. https://techcommunity.microsoft.com/t5/teams-developer/oauth-not-working-in-teams/m-p/3356135 In the web chat test, it worked normally, but there is an issue where the button cannot be clicked in the Teams app. The person above said it worked automatically within a day, but I still don't work after 3 days.

This is success in web chatting.

image image

Not working in teams app.

image

IMG_6285

This is my manifest.json

{
  "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.16/MicrosoftTeams.schema.json",
  "manifestVersion": "1.16",
  "version": "1.0.1",
  "id": "a795c2b9-3815-4cda-b80a-0d0cb8ad6109",
  "packageName": "com.travelflan.francis-bot",
  "developer": {
    "name": "Francis kim",
    "websiteUrl": "https://website.com/",
    "privacyUrl": "https://website.com/privacy",
    "termsOfUseUrl": "https://website.com/app-tos"
  },
  "icons": {
    "color": "color.png",
    "outline": "outline.png"
  },
  "name": {
    "short": "Francis 봇",
    "full": "Francis 봇"
  },
  "description": {
    "short": "travelflan 챗봇",
    "full": "travelflan 챗봇"
  },
  "accentColor": "#666666",
  "staticTabs": [
    {
      "entityId": "conversations",
      "scopes": [
        "personal"
      ]
    },
    {
      "entityId": "about",
      "scopes": [
        "personal"
      ]
    }
  ],
  "bots": [
    {
      "botId": "a795c2b9-3815-4cda-b80a-0d0cb8ad6109",
      "scopes": [
        "personal",
        "team",
        "groupChat"
      ],
      "supportsFiles": true,
      "isNotificationOnly": false,
      "supportsCalling": true,
      "supportsVideo": true
    }
  ],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "*.azurewebsites.net",
    "*.botframework.com",
    "*.microsoftonline.com"
  ]
}
xncbf commented 1 year ago

I think maybe the manifest file is not applied. If i deploy using github action uses: azure/webapps-deploy@v2, isn't it automatically applied? Should I always visit the following link? https://admin.teams.microsoft.com/policies/manage-apps

xncbf commented 1 year ago

I was able to update the manifest via a user with admin permissions at https://admin.teams.microsoft.com/policies/manage-apps. After applying, it was reflected when I logged out and logged in.