Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
300 views
in Technique[技术] by (71.8m points)

angular - Microsoft Teams tab loading app with Auth0

I got an angular SPA using Auth0 for authentication. I tried adding it as an app i Microsoft teams and the usual username and password login works fine however, using LinkedIn and Google ended up not working in the actual app but only in the web client version of Teams.

I'm pretty new into the O365 world and also doing apps for teams so I'm not really sure where to start looking.

My manifest looks like the following:

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.8/MicrosoftTeams.schema.json",
  "manifestVersion": "1.8",
  "id": "XXXXXXXXXXXXXXXX",
  "version": "1.0",
  "packageName": "helloTeams",
  "developer": {
    "name": "Contoso",
    "websiteUrl": "https://www.contoso.com",
    "privacyUrl": "",
    "termsOfUseUrl": "",
    "mpnId": "6006813"
  },
  "name": {
    "short": "Hello world",
    "full": "Hello world"
  },
  "description": {
    "short": "Testing!",
    "full": "Testing!"
  },
  "icons": {
    "outline": "icon-outline.png",
    "color": "icon-color.png"
  },
  "accentColor": "#6b009e",
  "configurableTabs": [],
  "staticTabs": [
    {
      "entityId": "XXXXXXXXXXXXX",
      "name": "Vocean",
      "contentUrl": "https://app.contoso.com/",
      "scopes": [
        "personal"
      ]
    }
  ],
  "bots": [],
  "connectors": [],
  "composeExtensions": [],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "app.contoso.com", "*.google.com", "*.linkedin.com"
  ],
  "showLoadingIndicator": false,
  "isFullScreen": false
}

I've tried both with doing the login flow for google and linkedin with redirect and with pop-up window no of them works in the Teams desktop application (windows). Any clues of where to start look would be much appreciated.

question from:https://stackoverflow.com/questions/65901880/microsoft-teams-tab-loading-app-with-auth0

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Problem in the manifest file. It did not support wildcards in the domain name.

Next problem is that Teams application is doing an iframe and Google and LinkedIn doesn't support iframed logins. Tried to do the pop-up flow instead but then it opens the popup in the default browser instead of teams.

Follow up question: Is there an easy way to have the pop-up be opened in Teams? Otherwise it feels like I need to create a completely new login flow just for teams.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...