Forum Discussion

yuu113's avatar
yuu113
Copper Contributor
Mar 21, 2022

In which scenario "webApplicationInfo" nad "validDomains" needs to be configured in manifest.json?

Hi, can someone help me to understand the behavior of "webApplicationInfo" and "validDomains" property in manifest.json?

 

<webApplicationInfo>

https://docs.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#webapplicationinfo

 

<validDomains>

https://docs.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#validdomains

 

I have created Teams Custom Bot Application (developed by Bot Framework v4) and in this app, Azure AD authentication and Graph API call (following below tutorial: https://docs.microsoft.com/en-us/graph/tutorials/bot-framework?tutorial-step=3), and API call to Azure QnA Maker endpoint is implemented.

 

So based on the doc's property definition, I thought I need to configure below infos in manifest.json, but actually application works (user can login, call graph api, can communicate with qna maker) in teams without those configuration.

・"webApplicationInfo"'s id : bot application id

・"validDomains" : token.botframework.com (redirect uri while AAD authentication), <QnAMakerName>.azurewebsites.net (for qna maker endpoint call)

 

Is it expected behavior? if expected, in which scenario those properties should be configured?

 

My Manifest.json

・validDomains is not configured

・webApplicationId is not configured (property not exist in manifest.json)

Bot Appications's Behavior

・user can login

 

・bot app can call Graph API

 

・Bot can communicate with QnA Maker (can get answer from QnA Maker).

 

Thank you very much in advance!

Resources