Forum Discussion
Cannot retrieve Teams token from Side Panel
rodrigolicata - Please verify the contents of webApplicationInfo section:
"webApplicationInfo": {
"id": "{AAD App client id}",
"resource": "api://{Your tab app domain}/{AAD App client id}"
}
Please make sure the domain in webApplicationInfo is same as your tab app's domain, otherwise Teams will return error.
- rodrigolicataMay 17, 2022Copper Contributor
The content of webApplicationInfo section is the following:
"webApplicationInfo": { "id": "{{AZURE_APP_ID}}", "resource": "api://demo.localhost.localdomain/{{AZURE_APP_ID}}", "applicationPermissions": ["OnlineMeeting.ReadBasic.Chat"] }
The tab app's domain is: demo.localhost.localdomain:3021
The port is not included in the resource URL, but it's needed?- Sayali-MSFTMay 19, 2022
Microsoft
Yes. you need to add port in the resource URL.- rodrigolicataMay 19, 2022Copper Contributor
Sayali-MSFT I tested the App with the following conditions:
Put the port only in the manifest: it brakes the App because I can't sign in.
Put the port only in Azure portal: the App works but I can't get the token from static tab (if I don't put the port in both sides I can get the token from static tab). There is an error.
And If I have it in both places I have the same error of having the port only in the manifest.
- Sayali-MSFTMay 18, 2022
Microsoft
rodrigolicata - Provide your Azure Active Directory App ID and Microsoft Graph information to help users seamlessly sign into your app. If your app is registered in Microsoft Azure Active Directory (Azure AD), you must provide the App ID. Administrators can easily review permissions and grant consent in Teams admin center.
Resource URL of app for acquiring auth token for SSO.
If you are not using SSO, ensure that you enter a dummy string value in this field to your app manifest, for example, https://notapplicable to avoid an error response.- rodrigolicataMay 18, 2022Copper Contributor
Sayali-MSFT Sorry, but this is not very helpful, you only pasted the same information from https://docs.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#webapplicationinfo .