Error:
We’re using the Microsoft Graph Toolkit for login credentials in order to use the Microsoft Graph API : https://docs.microsoft.com/en-us/graph/toolkit/overview
With version 2.1.0:
And we did the Azure AD App Registration following this tutorial: https://docs.microsoft.com/en-us/graph/toolkit/get-started/add-aad-app-registration
So, what I think we need, is to change the localhost URI to point to the deployed Teams app. Something like: https://<teams-tenant>/<teams-app>/auth.html. But I can’t figure it out.
What am I missing?
Precisions/Edits:
- When running Teams App locally using
npm start, we can sign in user and get profile information. The MGT and Azure App are properly configured following Microsoft documentation (for local runs but not for deployments).
Steps to reproduce issue:
- Create Teams App using Microsoft Teams Toolkit Extension version 1.2.3 as "Personnal Tab" without SSO
- Configure Microsoft Graph Toolkit version 2.1.0 following these steps: https://docs.microsoft.com/en-us/graph/toolkit/get-started/build-a-microsoft-teams-tab#add-the-microsoft-graph-toolkit
- Make sure the Azure Active Directory App is created following this step: Add Microsoft Graph Toolkit following these steps: https://docs.microsoft.com/en-us/graph/toolkit/get-started/build-a-microsoft-teams-tab#add-the-microsoft-graph-toolkit
- Test and run locally (Add Microsoft Graph Toolkit following these steps: https://docs.microsoft.com/en-us/graph/toolkit/get-started/build-a-microsoft-teams-tab#add-the-microsoft-graph-toolkit) - This should work
- Upload appPackage.zip in Teams Admin Center (https://docs.microsoft.com/en-us/MicrosoftTeams/manage-apps?toc=%2Fmicrosoftteams%2Fplatform%2Ftoc.json&bc=%2Fmicrosoftteams%2Fplatform%2Fbreadcrumb%2Ftoc.json#customize-an-app)
- Install App in Teams and try to access it. As soon as it tries to load the app, we get the localhost error.




