@microsoft/teamsfx-core 1.16.1 → 1.16.3-alpha.311dfaffe.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (758) hide show
  1. package/build/common/azure-hosting/azureHosting.d.ts.map +1 -1
  2. package/build/common/azure-hosting/azureHosting.js +3 -3
  3. package/build/common/azure-hosting/azureHosting.js.map +1 -1
  4. package/build/common/constants.d.ts +2 -1
  5. package/build/common/constants.d.ts.map +1 -1
  6. package/build/common/constants.js +2 -1
  7. package/build/common/constants.js.map +1 -1
  8. package/build/common/featureFlags.d.ts +1 -0
  9. package/build/common/featureFlags.d.ts.map +1 -1
  10. package/build/common/featureFlags.js +5 -1
  11. package/build/common/featureFlags.js.map +1 -1
  12. package/build/common/local/localEnvManager.d.ts.map +1 -1
  13. package/build/common/local/localEnvManager.js +1 -4
  14. package/build/common/local/localEnvManager.js.map +1 -1
  15. package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
  16. package/build/common/local/projectSettingsHelper.js +11 -51
  17. package/build/common/local/projectSettingsHelper.js.map +1 -1
  18. package/build/common/localStateProvider.d.ts.map +1 -1
  19. package/build/common/localStateProvider.js +1 -2
  20. package/build/common/localStateProvider.js.map +1 -1
  21. package/build/common/samples-config.json +12 -0
  22. package/build/common/templates-config.json +2 -2
  23. package/build/common/tools.d.ts +1 -0
  24. package/build/common/tools.d.ts.map +1 -1
  25. package/build/common/tools.js +9 -6
  26. package/build/common/tools.js.map +1 -1
  27. package/build/component/code/appSettingUtils.js +2 -2
  28. package/build/component/code/appSettingUtils.js.map +1 -1
  29. package/build/component/code/spfxTabCode.d.ts.map +1 -1
  30. package/build/component/code/spfxTabCode.js +10 -10
  31. package/build/component/code/spfxTabCode.js.map +1 -1
  32. package/build/component/core.js +9 -9
  33. package/build/component/core.js.map +1 -1
  34. package/build/component/debug.d.ts.map +1 -1
  35. package/build/component/debug.js +65 -51
  36. package/build/component/debug.js.map +1 -1
  37. package/build/component/debugHandler/appManifest.d.ts +1 -1
  38. package/build/component/debugHandler/appManifest.d.ts.map +1 -1
  39. package/build/component/debugHandler/appManifest.js +27 -25
  40. package/build/component/debugHandler/appManifest.js.map +1 -1
  41. package/build/component/debugHandler/bot.d.ts +0 -1
  42. package/build/component/debugHandler/bot.d.ts.map +1 -1
  43. package/build/component/debugHandler/bot.js +36 -31
  44. package/build/component/debugHandler/bot.js.map +1 -1
  45. package/build/component/debugHandler/error.d.ts +3 -3
  46. package/build/component/debugHandler/error.d.ts.map +1 -1
  47. package/build/component/debugHandler/error.js +14 -14
  48. package/build/component/debugHandler/error.js.map +1 -1
  49. package/build/component/debugHandler/index.d.ts +1 -0
  50. package/build/component/debugHandler/index.d.ts.map +1 -1
  51. package/build/component/debugHandler/index.js +1 -0
  52. package/build/component/debugHandler/index.js.map +1 -1
  53. package/build/component/debugHandler/localEnvProvider.js +1 -1
  54. package/build/component/debugHandler/localEnvProvider.js.map +1 -1
  55. package/build/component/debugHandler/sso.d.ts +0 -1
  56. package/build/component/debugHandler/sso.d.ts.map +1 -1
  57. package/build/component/debugHandler/sso.js +80 -69
  58. package/build/component/debugHandler/sso.js.map +1 -1
  59. package/build/component/debugHandler/tab.d.ts.map +1 -1
  60. package/build/component/debugHandler/tab.js +11 -12
  61. package/build/component/debugHandler/tab.js.map +1 -1
  62. package/build/component/error.d.ts +3 -0
  63. package/build/component/error.d.ts.map +1 -1
  64. package/build/component/error.js +11 -1
  65. package/build/component/error.js.map +1 -1
  66. package/build/component/feature/api.js +3 -3
  67. package/build/component/feature/api.js.map +1 -1
  68. package/build/component/feature/apiconnector/sampleHandler.d.ts.map +1 -1
  69. package/build/component/feature/apiconnector/sampleHandler.js +2 -2
  70. package/build/component/feature/apiconnector/sampleHandler.js.map +1 -1
  71. package/build/component/feature/apiconnector/telemetry.js +2 -2
  72. package/build/component/feature/apiconnector/telemetry.js.map +1 -1
  73. package/build/component/feature/apim.d.ts.map +1 -1
  74. package/build/component/feature/apim.js +3 -3
  75. package/build/component/feature/apim.js.map +1 -1
  76. package/build/component/feature/bot.d.ts.map +1 -1
  77. package/build/component/feature/bot.js +5 -4
  78. package/build/component/feature/bot.js.map +1 -1
  79. package/build/component/feature/keyVault.js +2 -2
  80. package/build/component/feature/keyVault.js.map +1 -1
  81. package/build/component/feature/spfx.d.ts.map +1 -1
  82. package/build/component/feature/spfx.js +5 -12
  83. package/build/component/feature/spfx.js.map +1 -1
  84. package/build/component/feature/sql.d.ts.map +1 -1
  85. package/build/component/feature/sql.js +3 -3
  86. package/build/component/feature/sql.js.map +1 -1
  87. package/build/component/feature/sso.d.ts.map +1 -1
  88. package/build/component/feature/sso.js +45 -44
  89. package/build/component/feature/sso.js.map +1 -1
  90. package/build/component/feature/tab.js +2 -2
  91. package/build/component/feature/tab.js.map +1 -1
  92. package/build/component/migrate.d.ts.map +1 -1
  93. package/build/component/migrate.js +41 -47
  94. package/build/component/migrate.js.map +1 -1
  95. package/build/component/provisionUtils.js +2 -2
  96. package/build/component/provisionUtils.js.map +1 -1
  97. package/build/component/questionV3.d.ts +3 -0
  98. package/build/component/questionV3.d.ts.map +1 -1
  99. package/build/component/questionV3.js +27 -4
  100. package/build/component/questionV3.js.map +1 -1
  101. package/build/component/resource/aadApp/aadApp.d.ts +5 -0
  102. package/build/component/resource/aadApp/aadApp.d.ts.map +1 -1
  103. package/build/component/resource/aadApp/aadApp.js +60 -13
  104. package/build/component/resource/aadApp/aadApp.js.map +1 -1
  105. package/build/{plugins/resource/aad → component/resource/aadApp}/aadAppClient.d.ts +0 -0
  106. package/build/component/resource/aadApp/aadAppClient.d.ts.map +1 -0
  107. package/build/{plugins/resource/aad → component/resource/aadApp}/aadAppClient.js +2 -2
  108. package/build/component/resource/aadApp/aadAppClient.js.map +1 -0
  109. package/build/{plugins/resource/aad/plugin.d.ts → component/resource/aadApp/aadAppForTeamsImpl.d.ts} +6 -9
  110. package/build/component/resource/aadApp/aadAppForTeamsImpl.d.ts.map +1 -0
  111. package/build/{plugins/resource/aad/plugin.js → component/resource/aadApp/aadAppForTeamsImpl.js} +44 -119
  112. package/build/component/resource/aadApp/aadAppForTeamsImpl.js.map +1 -0
  113. package/build/{plugins/resource/aad → component/resource/aadApp}/aadAppManifestManager.d.ts +0 -0
  114. package/build/component/resource/aadApp/aadAppManifestManager.d.ts.map +1 -0
  115. package/build/{plugins/resource/aad → component/resource/aadApp}/aadAppManifestManager.js +0 -0
  116. package/build/component/resource/aadApp/aadAppManifestManager.js.map +1 -0
  117. package/build/{plugins/resource/aad → component/resource/aadApp}/appStudio.d.ts +0 -0
  118. package/build/component/resource/aadApp/appStudio.d.ts.map +1 -0
  119. package/build/{plugins/resource/aad → component/resource/aadApp}/appStudio.js +1 -1
  120. package/build/component/resource/aadApp/appStudio.js.map +1 -0
  121. package/build/{plugins/resource/aad → component/resource/aadApp}/constants.d.ts +0 -0
  122. package/build/component/resource/aadApp/constants.d.ts.map +1 -0
  123. package/build/{plugins/resource/aad → component/resource/aadApp}/constants.js +0 -0
  124. package/build/component/resource/aadApp/constants.js.map +1 -0
  125. package/build/{plugins/resource/aad → component/resource/aadApp}/errorCodes.d.ts +0 -0
  126. package/build/component/resource/aadApp/errorCodes.d.ts.map +1 -0
  127. package/build/{plugins/resource/aad → component/resource/aadApp}/errorCodes.js +0 -0
  128. package/build/component/resource/aadApp/errorCodes.js.map +1 -0
  129. package/build/{plugins/resource/aad → component/resource/aadApp}/errors.d.ts +0 -0
  130. package/build/component/resource/aadApp/errors.d.ts.map +1 -0
  131. package/build/{plugins/resource/aad → component/resource/aadApp}/errors.js +0 -0
  132. package/build/component/resource/aadApp/errors.js.map +1 -0
  133. package/build/{plugins/resource/aad → component/resource/aadApp}/graph.d.ts +0 -0
  134. package/build/component/resource/aadApp/graph.d.ts.map +1 -0
  135. package/build/{plugins/resource/aad → component/resource/aadApp}/graph.js +0 -0
  136. package/build/component/resource/aadApp/graph.js.map +1 -0
  137. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/AADApplication.d.ts +0 -0
  138. package/build/component/resource/aadApp/interfaces/AADApplication.d.ts.map +1 -0
  139. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/AADApplication.js +0 -0
  140. package/build/component/resource/aadApp/interfaces/AADApplication.js.map +1 -0
  141. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/AADManifest.d.ts +0 -0
  142. package/build/component/resource/aadApp/interfaces/AADManifest.d.ts.map +1 -0
  143. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/AADManifest.js +0 -0
  144. package/build/component/resource/aadApp/interfaces/AADManifest.js.map +1 -0
  145. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IAADApplication.d.ts +0 -0
  146. package/build/component/resource/aadApp/interfaces/IAADApplication.d.ts.map +1 -0
  147. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IAADApplication.js +0 -0
  148. package/build/component/resource/aadApp/interfaces/IAADApplication.js.map +1 -0
  149. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IAADDefinition.d.ts +0 -0
  150. package/build/component/resource/aadApp/interfaces/IAADDefinition.d.ts.map +1 -0
  151. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IAADDefinition.js +0 -0
  152. package/build/component/resource/aadApp/interfaces/IAADDefinition.js.map +1 -0
  153. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IPermission.d.ts +0 -0
  154. package/build/component/resource/aadApp/interfaces/IPermission.d.ts.map +1 -0
  155. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IPermission.js +0 -0
  156. package/build/component/resource/aadApp/interfaces/IPermission.js.map +1 -0
  157. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IPermissionList.d.ts +0 -0
  158. package/build/component/resource/aadApp/interfaces/IPermissionList.d.ts.map +1 -0
  159. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/IPermissionList.js +0 -0
  160. package/build/component/resource/aadApp/interfaces/IPermissionList.js.map +1 -0
  161. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/models.d.ts +0 -0
  162. package/build/component/resource/aadApp/interfaces/models.d.ts.map +1 -0
  163. package/build/{plugins/resource/aad → component/resource/aadApp}/interfaces/models.js +0 -0
  164. package/build/component/resource/aadApp/interfaces/models.js.map +1 -0
  165. package/build/{plugins/resource/aad → component/resource/aadApp}/permissions/index.d.ts +0 -0
  166. package/build/component/resource/aadApp/permissions/index.d.ts.map +1 -0
  167. package/build/{plugins/resource/aad → component/resource/aadApp}/permissions/index.js +1 -1
  168. package/build/component/resource/aadApp/permissions/index.js.map +1 -0
  169. package/build/{plugins/resource/aad → component/resource/aadApp}/permissions/permissions.json +0 -0
  170. package/build/{plugins/resource/aad → component/resource/aadApp}/results.d.ts +0 -0
  171. package/build/component/resource/aadApp/results.d.ts.map +1 -0
  172. package/build/{plugins/resource/aad → component/resource/aadApp}/results.js +0 -0
  173. package/build/component/resource/aadApp/results.js.map +1 -0
  174. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/aadManifestHelper.d.ts +0 -0
  175. package/build/component/resource/aadApp/utils/aadManifestHelper.d.ts.map +1 -0
  176. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/aadManifestHelper.js +0 -0
  177. package/build/component/resource/aadApp/utils/aadManifestHelper.js.map +1 -0
  178. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/configs.d.ts +0 -0
  179. package/build/component/resource/aadApp/utils/configs.d.ts.map +1 -0
  180. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/configs.js +9 -11
  181. package/build/component/resource/aadApp/utils/configs.js.map +1 -0
  182. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/dialog.d.ts +0 -0
  183. package/build/component/resource/aadApp/utils/dialog.d.ts.map +1 -0
  184. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/dialog.js +0 -0
  185. package/build/component/resource/aadApp/utils/dialog.js.map +1 -0
  186. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/format.d.ts +0 -0
  187. package/build/component/resource/aadApp/utils/format.d.ts.map +1 -0
  188. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/format.js +0 -0
  189. package/build/component/resource/aadApp/utils/format.js.map +1 -0
  190. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/telemetry.d.ts +0 -0
  191. package/build/component/resource/aadApp/utils/telemetry.d.ts.map +1 -0
  192. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/telemetry.js +1 -1
  193. package/build/component/resource/aadApp/utils/telemetry.js.map +1 -0
  194. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/tokenProvider.d.ts +0 -0
  195. package/build/component/resource/aadApp/utils/tokenProvider.d.ts.map +1 -0
  196. package/build/{plugins/resource/aad → component/resource/aadApp}/utils/tokenProvider.js +5 -5
  197. package/build/component/resource/aadApp/utils/tokenProvider.js.map +1 -0
  198. package/build/component/resource/aadApp/utils.d.ts +3 -1
  199. package/build/component/resource/aadApp/utils.d.ts.map +1 -1
  200. package/build/component/resource/aadApp/utils.js +165 -1
  201. package/build/component/resource/aadApp/utils.js.map +1 -1
  202. package/build/component/resource/apim/config.d.ts.map +1 -1
  203. package/build/component/resource/apim/config.js +5 -6
  204. package/build/component/resource/apim/config.js.map +1 -1
  205. package/build/component/resource/apim/factory.js +2 -2
  206. package/build/component/resource/apim/factory.js.map +1 -1
  207. package/build/component/resource/appManifest/appManifest.d.ts +1 -1
  208. package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
  209. package/build/component/resource/appManifest/appManifest.js +3 -3
  210. package/build/component/resource/appManifest/appManifest.js.map +1 -1
  211. package/build/component/resource/appManifest/constants.d.ts +1 -0
  212. package/build/component/resource/appManifest/constants.d.ts.map +1 -1
  213. package/build/component/resource/appManifest/constants.js +28 -8
  214. package/build/component/resource/appManifest/constants.js.map +1 -1
  215. package/build/component/resource/appManifest/utils.d.ts +1 -1
  216. package/build/component/resource/appManifest/utils.d.ts.map +1 -1
  217. package/build/component/resource/appManifest/utils.js +4 -6
  218. package/build/component/resource/appManifest/utils.js.map +1 -1
  219. package/build/component/resource/azureSql/config.js +3 -3
  220. package/build/component/resource/azureSql/config.js.map +1 -1
  221. package/build/component/resource/keyVault.d.ts +2 -0
  222. package/build/component/resource/keyVault.d.ts.map +1 -1
  223. package/build/component/resource/keyVault.js +18 -0
  224. package/build/component/resource/keyVault.js.map +1 -1
  225. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/constants.d.ts +0 -0
  226. package/build/component/resource/simpleAuth/constants.d.ts.map +1 -0
  227. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/constants.js +0 -0
  228. package/build/component/resource/simpleAuth/constants.js.map +1 -0
  229. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/errors.d.ts +0 -0
  230. package/build/component/resource/simpleAuth/errors.d.ts.map +1 -0
  231. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/errors.js +0 -0
  232. package/build/component/resource/simpleAuth/errors.js.map +1 -0
  233. package/build/component/resource/{simpleAuth.d.ts → simpleAuth/index.d.ts} +1 -1
  234. package/build/component/resource/simpleAuth/index.d.ts.map +1 -0
  235. package/build/component/resource/{simpleAuth.js → simpleAuth/index.js} +10 -10
  236. package/build/component/resource/simpleAuth/index.js.map +1 -0
  237. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/result.d.ts +0 -0
  238. package/build/component/resource/simpleAuth/result.d.ts.map +1 -0
  239. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/result.js +0 -0
  240. package/build/component/resource/simpleAuth/result.js.map +1 -0
  241. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/utils/common.d.ts +0 -0
  242. package/build/component/resource/simpleAuth/utils/common.d.ts.map +1 -0
  243. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/utils/common.js +0 -0
  244. package/build/component/resource/simpleAuth/utils/common.js.map +1 -0
  245. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/utils/dialog.d.ts +0 -0
  246. package/build/component/resource/simpleAuth/utils/dialog.d.ts.map +1 -0
  247. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/utils/dialog.js +0 -0
  248. package/build/component/resource/simpleAuth/utils/dialog.js.map +1 -0
  249. package/build/{plugins/resource/keyvault → component/resource/simpleAuth}/utils/telemetry.d.ts +0 -0
  250. package/build/component/resource/simpleAuth/utils/telemetry.d.ts.map +1 -0
  251. package/build/{plugins/resource/simpleauth → component/resource/simpleAuth}/utils/telemetry.js +0 -0
  252. package/build/component/resource/simpleAuth/utils/telemetry.js.map +1 -0
  253. package/build/{plugins → component}/resource/spfx/depsChecker/dependencyChecker.d.ts +0 -0
  254. package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts.map +1 -0
  255. package/build/{plugins → component}/resource/spfx/depsChecker/dependencyChecker.js +0 -0
  256. package/build/component/resource/spfx/depsChecker/dependencyChecker.js.map +1 -0
  257. package/build/{plugins → component}/resource/spfx/depsChecker/generatorChecker.d.ts +0 -0
  258. package/build/component/resource/spfx/depsChecker/generatorChecker.d.ts.map +1 -0
  259. package/build/{plugins → component}/resource/spfx/depsChecker/generatorChecker.js +16 -7
  260. package/build/component/resource/spfx/depsChecker/generatorChecker.js.map +1 -0
  261. package/build/{plugins → component}/resource/spfx/depsChecker/yoChecker.d.ts +0 -0
  262. package/build/component/resource/spfx/depsChecker/yoChecker.d.ts.map +1 -0
  263. package/build/{plugins → component}/resource/spfx/depsChecker/yoChecker.js +0 -0
  264. package/build/component/resource/spfx/depsChecker/yoChecker.js.map +1 -0
  265. package/build/{plugins → component}/resource/spfx/error.d.ts +0 -0
  266. package/build/component/resource/spfx/error.d.ts.map +1 -0
  267. package/build/{plugins → component}/resource/spfx/error.js +5 -4
  268. package/build/component/resource/spfx/error.js.map +1 -0
  269. package/build/component/resource/spfx/index.d.ts.map +1 -1
  270. package/build/component/resource/spfx/index.js +9 -9
  271. package/build/component/resource/spfx/index.js.map +1 -1
  272. package/build/{plugins → component}/resource/spfx/spoClient.d.ts +0 -0
  273. package/build/component/resource/spfx/spoClient.d.ts.map +1 -0
  274. package/build/{plugins → component}/resource/spfx/spoClient.js +0 -0
  275. package/build/component/resource/spfx/spoClient.js.map +1 -0
  276. package/build/{plugins → component}/resource/spfx/utils/constants.d.ts +3 -0
  277. package/build/component/resource/spfx/utils/constants.d.ts.map +1 -0
  278. package/build/{plugins → component}/resource/spfx/utils/constants.js +3 -0
  279. package/build/component/resource/spfx/utils/constants.js.map +1 -0
  280. package/build/{plugins → component}/resource/spfx/utils/progress-helper.d.ts +0 -0
  281. package/build/component/resource/spfx/utils/progress-helper.d.ts.map +1 -0
  282. package/build/{plugins → component}/resource/spfx/utils/progress-helper.js +0 -0
  283. package/build/component/resource/spfx/utils/progress-helper.js.map +1 -0
  284. package/build/{plugins → component}/resource/spfx/utils/questions.d.ts +0 -0
  285. package/build/component/resource/spfx/utils/questions.d.ts.map +1 -0
  286. package/build/{plugins → component}/resource/spfx/utils/questions.js +8 -2
  287. package/build/component/resource/spfx/utils/questions.js.map +1 -0
  288. package/build/{plugins → component}/resource/spfx/utils/telemetry-helper.d.ts +0 -0
  289. package/build/component/resource/spfx/utils/telemetry-helper.d.ts.map +1 -0
  290. package/build/{plugins → component}/resource/spfx/utils/telemetry-helper.js +0 -0
  291. package/build/component/resource/spfx/utils/telemetry-helper.js.map +1 -0
  292. package/build/{plugins → component}/resource/spfx/utils/telemetryEvents.d.ts +0 -0
  293. package/build/component/resource/spfx/utils/telemetryEvents.d.ts.map +1 -0
  294. package/build/{plugins → component}/resource/spfx/utils/telemetryEvents.js +0 -0
  295. package/build/component/resource/spfx/utils/telemetryEvents.js.map +1 -0
  296. package/build/{plugins → component}/resource/spfx/utils/utils.d.ts +2 -1
  297. package/build/component/resource/spfx/utils/utils.d.ts.map +1 -0
  298. package/build/{plugins → component}/resource/spfx/utils/utils.js +9 -4
  299. package/build/component/resource/spfx/utils/utils.js.map +1 -0
  300. package/build/core/FxCore.d.ts +10 -44
  301. package/build/core/FxCore.d.ts.map +1 -1
  302. package/build/core/FxCore.js +54 -696
  303. package/build/core/FxCore.js.map +1 -1
  304. package/build/core/collaborator.d.ts +6 -1
  305. package/build/core/collaborator.d.ts.map +1 -1
  306. package/build/core/collaborator.js +75 -23
  307. package/build/core/collaborator.js.map +1 -1
  308. package/build/core/environment.d.ts.map +1 -1
  309. package/build/core/environment.js +2 -7
  310. package/build/core/environment.js.map +1 -1
  311. package/build/core/generateAadManifestTemplate.d.ts +1 -1
  312. package/build/core/generateAadManifestTemplate.d.ts.map +1 -1
  313. package/build/core/generateAadManifestTemplate.js +11 -14
  314. package/build/core/generateAadManifestTemplate.js.map +1 -1
  315. package/build/core/globalVars.d.ts +0 -1
  316. package/build/core/globalVars.d.ts.map +1 -1
  317. package/build/core/globalVars.js +1 -5
  318. package/build/core/globalVars.js.map +1 -1
  319. package/build/core/index.d.ts +0 -5
  320. package/build/core/index.d.ts.map +1 -1
  321. package/build/core/index.js +0 -7
  322. package/build/core/index.js.map +1 -1
  323. package/build/core/middleware/MigrationUtils.d.ts +1 -1
  324. package/build/core/middleware/MigrationUtils.d.ts.map +1 -1
  325. package/build/core/middleware/MigrationUtils.js +2 -2
  326. package/build/core/middleware/MigrationUtils.js.map +1 -1
  327. package/build/core/middleware/consolidateLocalRemote.js +1 -1
  328. package/build/core/middleware/consolidateLocalRemote.js.map +1 -1
  329. package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
  330. package/build/core/middleware/envInfoLoader.js +1 -4
  331. package/build/core/middleware/envInfoLoader.js.map +1 -1
  332. package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
  333. package/build/core/middleware/envInfoLoaderV3.js +1 -4
  334. package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
  335. package/build/core/middleware/projectMigrator.js +2 -2
  336. package/build/core/middleware/projectMigrator.js.map +1 -1
  337. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  338. package/build/core/middleware/projectSettingsLoader.js +1 -10
  339. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  340. package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
  341. package/build/core/middleware/projectSettingsWriter.js +1 -3
  342. package/build/core/middleware/projectSettingsWriter.js.map +1 -1
  343. package/build/core/middleware/questionModel.d.ts +1 -10
  344. package/build/core/middleware/questionModel.d.ts.map +1 -1
  345. package/build/core/middleware/questionModel.js +26 -225
  346. package/build/core/middleware/questionModel.js.map +1 -1
  347. package/build/index.d.ts +2 -8
  348. package/build/index.d.ts.map +1 -1
  349. package/build/index.js +4 -8
  350. package/build/index.js.map +1 -1
  351. package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
  352. package/build/plugins/resource/appstudio/appStudio.js +8 -1
  353. package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
  354. package/build/plugins/resource/appstudio/errors.d.ts +4 -0
  355. package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
  356. package/build/plugins/resource/appstudio/errors.js +7 -0
  357. package/build/plugins/resource/appstudio/errors.js.map +1 -1
  358. package/build/plugins/resource/appstudio/index.js +2 -2
  359. package/build/plugins/resource/appstudio/index.js.map +1 -1
  360. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  361. package/build/plugins/resource/appstudio/plugin.js +21 -21
  362. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  363. package/build/plugins/resource/appstudio/v2/index.js +2 -2
  364. package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
  365. package/build/plugins/resource/bot/configs/teamsBotConfig.js +2 -2
  366. package/build/plugins/resource/bot/configs/teamsBotConfig.js.map +1 -1
  367. package/build/plugins/resource/bot/errors.d.ts.map +1 -1
  368. package/build/plugins/resource/bot/errors.js +2 -2
  369. package/build/plugins/resource/bot/errors.js.map +1 -1
  370. package/build/plugins/resource/bot/functionsHostedBot/plugin.js +8 -8
  371. package/build/plugins/resource/bot/functionsHostedBot/plugin.js.map +1 -1
  372. package/build/plugins/resource/bot/index.d.ts.map +1 -1
  373. package/build/plugins/resource/bot/index.js +9 -7
  374. package/build/plugins/resource/bot/index.js.map +1 -1
  375. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  376. package/build/plugins/resource/bot/plugin.js +16 -15
  377. package/build/plugins/resource/bot/plugin.js.map +1 -1
  378. package/build/plugins/resource/bot/question.d.ts.map +1 -1
  379. package/build/plugins/resource/bot/question.js +9 -10
  380. package/build/plugins/resource/bot/question.js.map +1 -1
  381. package/build/plugins/resource/function/plugin.js +3 -4
  382. package/build/plugins/resource/function/plugin.js.map +1 -1
  383. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +1 -1
  384. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -1
  385. package/build/plugins/resource/index.d.ts +0 -5
  386. package/build/plugins/resource/index.d.ts.map +1 -1
  387. package/build/plugins/resource/index.js +0 -5
  388. package/build/plugins/resource/index.js.map +1 -1
  389. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +0 -10
  390. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
  391. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +0 -10
  392. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
  393. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  394. package/build/plugins/solution/fx-solution/arm.js +15 -15
  395. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  396. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +4 -0
  397. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
  398. package/build/plugins/solution/fx-solution/debug/scaffolding.js +47 -1
  399. package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
  400. package/build/plugins/solution/fx-solution/debug/util/launchTransparency.d.ts +7 -0
  401. package/build/plugins/solution/fx-solution/debug/util/launchTransparency.d.ts.map +1 -0
  402. package/build/plugins/solution/fx-solution/debug/util/launchTransparency.js +52 -0
  403. package/build/plugins/solution/fx-solution/debug/util/launchTransparency.js.map +1 -0
  404. package/build/plugins/solution/fx-solution/debug/util/ngrok.d.ts.map +1 -1
  405. package/build/plugins/solution/fx-solution/debug/util/ngrok.js +2 -4
  406. package/build/plugins/solution/fx-solution/debug/util/ngrok.js.map +1 -1
  407. package/build/plugins/solution/fx-solution/debug/util/settings.js +2 -2
  408. package/build/plugins/solution/fx-solution/debug/util/settings.js.map +1 -1
  409. package/build/plugins/solution/fx-solution/debug/util/tasksTransparency.d.ts +7 -0
  410. package/build/plugins/solution/fx-solution/debug/util/tasksTransparency.d.ts.map +1 -0
  411. package/build/plugins/solution/fx-solution/debug/util/tasksTransparency.js +553 -0
  412. package/build/plugins/solution/fx-solution/debug/util/tasksTransparency.js.map +1 -0
  413. package/build/plugins/solution/fx-solution/utils/backupFiles.js +2 -2
  414. package/build/plugins/solution/fx-solution/utils/backupFiles.js.map +1 -1
  415. package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
  416. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  417. package/package.json +9 -23
  418. package/resource/package.nls.json +8 -6
  419. package/templates/debug/ngrok.yml +4 -0
  420. package/templates/fallback/bot.csharp.command-and-response.zip +0 -0
  421. package/templates/fallback/bot.csharp.default.zip +0 -0
  422. package/templates/fallback/bot.csharp.notification-function-base.zip +0 -0
  423. package/templates/fallback/bot.csharp.notification-trigger-http.zip +0 -0
  424. package/templates/fallback/bot.csharp.notification-trigger-timer.zip +0 -0
  425. package/templates/fallback/bot.csharp.notification-webapi.zip +0 -0
  426. package/templates/fallback/bot.csharp.workflow.zip +0 -0
  427. package/templates/fallback/bot.js.command-and-response.zip +0 -0
  428. package/templates/fallback/bot.js.default.zip +0 -0
  429. package/templates/fallback/bot.js.m365.zip +0 -0
  430. package/templates/fallback/bot.js.notification-function-base.zip +0 -0
  431. package/templates/fallback/bot.js.notification-restify.zip +0 -0
  432. package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
  433. package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
  434. package/templates/fallback/bot.js.workflow.zip +0 -0
  435. package/templates/fallback/bot.ts.command-and-response.zip +0 -0
  436. package/templates/fallback/bot.ts.default.zip +0 -0
  437. package/templates/fallback/bot.ts.m365.zip +0 -0
  438. package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
  439. package/templates/fallback/bot.ts.notification-restify.zip +0 -0
  440. package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
  441. package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
  442. package/templates/fallback/bot.ts.workflow.zip +0 -0
  443. package/templates/fallback/function-base.js.default.zip +0 -0
  444. package/templates/fallback/function-base.ts.default.zip +0 -0
  445. package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
  446. package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
  447. package/templates/fallback/tab.csharp.default.zip +0 -0
  448. package/templates/fallback/tab.csharp.non-sso.zip +0 -0
  449. package/templates/fallback/tab.js.default.zip +0 -0
  450. package/templates/fallback/tab.js.m365.zip +0 -0
  451. package/templates/fallback/tab.js.non-sso.zip +0 -0
  452. package/templates/fallback/tab.ts.default.zip +0 -0
  453. package/templates/fallback/tab.ts.m365.zip +0 -0
  454. package/templates/fallback/tab.ts.non-sso.zip +0 -0
  455. package/templates/plugins/resource/aad/auth/bot/README.md +202 -124
  456. package/templates/plugins/resource/aad/auth/bot/js/sso/profileSsoCommandHandler.js +30 -0
  457. package/templates/plugins/resource/aad/auth/bot/ts/sso/profileSsoCommandHandler.ts +38 -0
  458. package/templates/plugins/resource/spfx/solution/prereleaseREADME.md +82 -0
  459. package/build/common/index.d.ts +0 -10
  460. package/build/common/index.d.ts.map +0 -1
  461. package/build/common/index.js +0 -15
  462. package/build/common/index.js.map +0 -1
  463. package/build/component/resource/simpleAuth.d.ts.map +0 -1
  464. package/build/component/resource/simpleAuth.js.map +0 -1
  465. package/build/core/middleware/index.d.ts +0 -11
  466. package/build/core/middleware/index.d.ts.map +0 -1
  467. package/build/core/middleware/index.js +0 -14
  468. package/build/core/middleware/index.js.map +0 -1
  469. package/build/core/middleware/solutionLoader.d.ts +0 -4
  470. package/build/core/middleware/solutionLoader.d.ts.map +0 -1
  471. package/build/core/middleware/solutionLoader.js +0 -34
  472. package/build/core/middleware/solutionLoader.js.map +0 -1
  473. package/build/plugins/index.d.ts +0 -3
  474. package/build/plugins/index.d.ts.map +0 -1
  475. package/build/plugins/index.js +0 -8
  476. package/build/plugins/index.js.map +0 -1
  477. package/build/plugins/resource/aad/aadAppClient.d.ts.map +0 -1
  478. package/build/plugins/resource/aad/aadAppClient.js.map +0 -1
  479. package/build/plugins/resource/aad/aadAppManifestManager.d.ts.map +0 -1
  480. package/build/plugins/resource/aad/aadAppManifestManager.js.map +0 -1
  481. package/build/plugins/resource/aad/appStudio.d.ts.map +0 -1
  482. package/build/plugins/resource/aad/appStudio.js.map +0 -1
  483. package/build/plugins/resource/aad/constants.d.ts.map +0 -1
  484. package/build/plugins/resource/aad/constants.js.map +0 -1
  485. package/build/plugins/resource/aad/errorCodes.d.ts.map +0 -1
  486. package/build/plugins/resource/aad/errorCodes.js.map +0 -1
  487. package/build/plugins/resource/aad/errors.d.ts.map +0 -1
  488. package/build/plugins/resource/aad/errors.js.map +0 -1
  489. package/build/plugins/resource/aad/graph.d.ts.map +0 -1
  490. package/build/plugins/resource/aad/graph.js.map +0 -1
  491. package/build/plugins/resource/aad/index.d.ts +0 -32
  492. package/build/plugins/resource/aad/index.d.ts.map +0 -1
  493. package/build/plugins/resource/aad/index.js +0 -154
  494. package/build/plugins/resource/aad/index.js.map +0 -1
  495. package/build/plugins/resource/aad/interfaces/AADApplication.d.ts.map +0 -1
  496. package/build/plugins/resource/aad/interfaces/AADApplication.js.map +0 -1
  497. package/build/plugins/resource/aad/interfaces/AADManifest.d.ts.map +0 -1
  498. package/build/plugins/resource/aad/interfaces/AADManifest.js.map +0 -1
  499. package/build/plugins/resource/aad/interfaces/IAADApplication.d.ts.map +0 -1
  500. package/build/plugins/resource/aad/interfaces/IAADApplication.js.map +0 -1
  501. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +0 -1
  502. package/build/plugins/resource/aad/interfaces/IAADDefinition.js.map +0 -1
  503. package/build/plugins/resource/aad/interfaces/IPermission.d.ts.map +0 -1
  504. package/build/plugins/resource/aad/interfaces/IPermission.js.map +0 -1
  505. package/build/plugins/resource/aad/interfaces/IPermissionList.d.ts.map +0 -1
  506. package/build/plugins/resource/aad/interfaces/IPermissionList.js.map +0 -1
  507. package/build/plugins/resource/aad/interfaces/models.d.ts.map +0 -1
  508. package/build/plugins/resource/aad/interfaces/models.js.map +0 -1
  509. package/build/plugins/resource/aad/permissions/index.d.ts.map +0 -1
  510. package/build/plugins/resource/aad/permissions/index.js.map +0 -1
  511. package/build/plugins/resource/aad/plugin.d.ts.map +0 -1
  512. package/build/plugins/resource/aad/plugin.js.map +0 -1
  513. package/build/plugins/resource/aad/results.d.ts.map +0 -1
  514. package/build/plugins/resource/aad/results.js.map +0 -1
  515. package/build/plugins/resource/aad/utils/aadManifestHelper.d.ts.map +0 -1
  516. package/build/plugins/resource/aad/utils/aadManifestHelper.js.map +0 -1
  517. package/build/plugins/resource/aad/utils/configs.d.ts.map +0 -1
  518. package/build/plugins/resource/aad/utils/configs.js.map +0 -1
  519. package/build/plugins/resource/aad/utils/dialog.d.ts.map +0 -1
  520. package/build/plugins/resource/aad/utils/dialog.js.map +0 -1
  521. package/build/plugins/resource/aad/utils/format.d.ts.map +0 -1
  522. package/build/plugins/resource/aad/utils/format.js.map +0 -1
  523. package/build/plugins/resource/aad/utils/telemetry.d.ts.map +0 -1
  524. package/build/plugins/resource/aad/utils/telemetry.js.map +0 -1
  525. package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +0 -1
  526. package/build/plugins/resource/aad/utils/tokenProvider.js.map +0 -1
  527. package/build/plugins/resource/aad/v2/index.d.ts +0 -22
  528. package/build/plugins/resource/aad/v2/index.d.ts.map +0 -1
  529. package/build/plugins/resource/aad/v2/index.js +0 -65
  530. package/build/plugins/resource/aad/v2/index.js.map +0 -1
  531. package/build/plugins/resource/aad/v3/index.d.ts +0 -22
  532. package/build/plugins/resource/aad/v3/index.d.ts.map +0 -1
  533. package/build/plugins/resource/aad/v3/index.js +0 -283
  534. package/build/plugins/resource/aad/v3/index.js.map +0 -1
  535. package/build/plugins/resource/keyvault/constants.d.ts +0 -36
  536. package/build/plugins/resource/keyvault/constants.d.ts.map +0 -1
  537. package/build/plugins/resource/keyvault/constants.js +0 -43
  538. package/build/plugins/resource/keyvault/constants.js.map +0 -1
  539. package/build/plugins/resource/keyvault/index.d.ts +0 -16
  540. package/build/plugins/resource/keyvault/index.d.ts.map +0 -1
  541. package/build/plugins/resource/keyvault/index.js +0 -65
  542. package/build/plugins/resource/keyvault/index.js.map +0 -1
  543. package/build/plugins/resource/keyvault/plugin.d.ts +0 -7
  544. package/build/plugins/resource/keyvault/plugin.d.ts.map +0 -1
  545. package/build/plugins/resource/keyvault/plugin.js +0 -44
  546. package/build/plugins/resource/keyvault/plugin.js.map +0 -1
  547. package/build/plugins/resource/keyvault/result.d.ts +0 -9
  548. package/build/plugins/resource/keyvault/result.d.ts.map +0 -1
  549. package/build/plugins/resource/keyvault/result.js +0 -35
  550. package/build/plugins/resource/keyvault/result.js.map +0 -1
  551. package/build/plugins/resource/keyvault/utils/telemetry.d.ts.map +0 -1
  552. package/build/plugins/resource/keyvault/utils/telemetry.js +0 -45
  553. package/build/plugins/resource/keyvault/utils/telemetry.js.map +0 -1
  554. package/build/plugins/resource/keyvault/v2/index.d.ts +0 -12
  555. package/build/plugins/resource/keyvault/v2/index.d.ts.map +0 -1
  556. package/build/plugins/resource/keyvault/v2/index.js +0 -38
  557. package/build/plugins/resource/keyvault/v2/index.js.map +0 -1
  558. package/build/plugins/resource/simpleauth/constants.d.ts.map +0 -1
  559. package/build/plugins/resource/simpleauth/constants.js.map +0 -1
  560. package/build/plugins/resource/simpleauth/errors.d.ts.map +0 -1
  561. package/build/plugins/resource/simpleauth/errors.js.map +0 -1
  562. package/build/plugins/resource/simpleauth/index.d.ts +0 -20
  563. package/build/plugins/resource/simpleauth/index.d.ts.map +0 -1
  564. package/build/plugins/resource/simpleauth/index.js +0 -78
  565. package/build/plugins/resource/simpleauth/index.js.map +0 -1
  566. package/build/plugins/resource/simpleauth/plugin.d.ts +0 -14
  567. package/build/plugins/resource/simpleauth/plugin.d.ts.map +0 -1
  568. package/build/plugins/resource/simpleauth/plugin.js +0 -141
  569. package/build/plugins/resource/simpleauth/plugin.js.map +0 -1
  570. package/build/plugins/resource/simpleauth/result.d.ts.map +0 -1
  571. package/build/plugins/resource/simpleauth/result.js.map +0 -1
  572. package/build/plugins/resource/simpleauth/utils/common.d.ts.map +0 -1
  573. package/build/plugins/resource/simpleauth/utils/common.js.map +0 -1
  574. package/build/plugins/resource/simpleauth/utils/dialog.d.ts.map +0 -1
  575. package/build/plugins/resource/simpleauth/utils/dialog.js.map +0 -1
  576. package/build/plugins/resource/simpleauth/utils/telemetry.d.ts +0 -17
  577. package/build/plugins/resource/simpleauth/utils/telemetry.d.ts.map +0 -1
  578. package/build/plugins/resource/simpleauth/utils/telemetry.js.map +0 -1
  579. package/build/plugins/resource/simpleauth/v2/index.d.ts +0 -15
  580. package/build/plugins/resource/simpleauth/v2/index.d.ts.map +0 -1
  581. package/build/plugins/resource/simpleauth/v2/index.js +0 -47
  582. package/build/plugins/resource/simpleauth/v2/index.js.map +0 -1
  583. package/build/plugins/resource/simpleauth/webAppClient.d.ts +0 -31
  584. package/build/plugins/resource/simpleauth/webAppClient.d.ts.map +0 -1
  585. package/build/plugins/resource/simpleauth/webAppClient.js +0 -136
  586. package/build/plugins/resource/simpleauth/webAppClient.js.map +0 -1
  587. package/build/plugins/resource/spfx/depsChecker/dependencyChecker.d.ts.map +0 -1
  588. package/build/plugins/resource/spfx/depsChecker/dependencyChecker.js.map +0 -1
  589. package/build/plugins/resource/spfx/depsChecker/generatorChecker.d.ts.map +0 -1
  590. package/build/plugins/resource/spfx/depsChecker/generatorChecker.js.map +0 -1
  591. package/build/plugins/resource/spfx/depsChecker/yoChecker.d.ts.map +0 -1
  592. package/build/plugins/resource/spfx/depsChecker/yoChecker.js.map +0 -1
  593. package/build/plugins/resource/spfx/error.d.ts.map +0 -1
  594. package/build/plugins/resource/spfx/error.js.map +0 -1
  595. package/build/plugins/resource/spfx/index.d.ts +0 -18
  596. package/build/plugins/resource/spfx/index.d.ts.map +0 -1
  597. package/build/plugins/resource/spfx/index.js +0 -96
  598. package/build/plugins/resource/spfx/index.js.map +0 -1
  599. package/build/plugins/resource/spfx/plugin.d.ts +0 -12
  600. package/build/plugins/resource/spfx/plugin.d.ts.map +0 -1
  601. package/build/plugins/resource/spfx/plugin.js +0 -216
  602. package/build/plugins/resource/spfx/plugin.js.map +0 -1
  603. package/build/plugins/resource/spfx/spoClient.d.ts.map +0 -1
  604. package/build/plugins/resource/spfx/spoClient.js.map +0 -1
  605. package/build/plugins/resource/spfx/utils/constants.d.ts.map +0 -1
  606. package/build/plugins/resource/spfx/utils/constants.js.map +0 -1
  607. package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +0 -1
  608. package/build/plugins/resource/spfx/utils/progress-helper.js.map +0 -1
  609. package/build/plugins/resource/spfx/utils/questions.d.ts.map +0 -1
  610. package/build/plugins/resource/spfx/utils/questions.js.map +0 -1
  611. package/build/plugins/resource/spfx/utils/telemetry-helper.d.ts.map +0 -1
  612. package/build/plugins/resource/spfx/utils/telemetry-helper.js.map +0 -1
  613. package/build/plugins/resource/spfx/utils/telemetryEvents.d.ts.map +0 -1
  614. package/build/plugins/resource/spfx/utils/telemetryEvents.js.map +0 -1
  615. package/build/plugins/resource/spfx/utils/utils.d.ts.map +0 -1
  616. package/build/plugins/resource/spfx/utils/utils.js.map +0 -1
  617. package/build/plugins/resource/spfx/v2/index.d.ts +0 -14
  618. package/build/plugins/resource/spfx/v2/index.d.ts.map +0 -1
  619. package/build/plugins/resource/spfx/v2/index.js +0 -41
  620. package/build/plugins/resource/spfx/v2/index.js.map +0 -1
  621. package/build/plugins/resource/sql/config.d.ts +0 -22
  622. package/build/plugins/resource/sql/config.d.ts.map +0 -1
  623. package/build/plugins/resource/sql/config.js +0 -30
  624. package/build/plugins/resource/sql/config.js.map +0 -1
  625. package/build/plugins/resource/sql/constants.d.ts +0 -82
  626. package/build/plugins/resource/sql/constants.d.ts.map +0 -1
  627. package/build/plugins/resource/sql/constants.js +0 -92
  628. package/build/plugins/resource/sql/constants.js.map +0 -1
  629. package/build/plugins/resource/sql/errors.d.ts +0 -63
  630. package/build/plugins/resource/sql/errors.d.ts.map +0 -1
  631. package/build/plugins/resource/sql/errors.js +0 -107
  632. package/build/plugins/resource/sql/errors.js.map +0 -1
  633. package/build/plugins/resource/sql/index.d.ts +0 -20
  634. package/build/plugins/resource/sql/index.d.ts.map +0 -1
  635. package/build/plugins/resource/sql/index.js +0 -92
  636. package/build/plugins/resource/sql/index.js.map +0 -1
  637. package/build/plugins/resource/sql/managementClient.d.ts +0 -18
  638. package/build/plugins/resource/sql/managementClient.d.ts.map +0 -1
  639. package/build/plugins/resource/sql/managementClient.js +0 -123
  640. package/build/plugins/resource/sql/managementClient.js.map +0 -1
  641. package/build/plugins/resource/sql/plugin.d.ts +0 -30
  642. package/build/plugins/resource/sql/plugin.d.ts.map +0 -1
  643. package/build/plugins/resource/sql/plugin.js +0 -340
  644. package/build/plugins/resource/sql/plugin.js.map +0 -1
  645. package/build/plugins/resource/sql/questions.d.ts +0 -5
  646. package/build/plugins/resource/sql/questions.d.ts.map +0 -1
  647. package/build/plugins/resource/sql/questions.js +0 -46
  648. package/build/plugins/resource/sql/questions.js.map +0 -1
  649. package/build/plugins/resource/sql/results.d.ts +0 -10
  650. package/build/plugins/resource/sql/results.d.ts.map +0 -1
  651. package/build/plugins/resource/sql/results.js +0 -32
  652. package/build/plugins/resource/sql/results.js.map +0 -1
  653. package/build/plugins/resource/sql/sqlClient.d.ts +0 -13
  654. package/build/plugins/resource/sql/sqlClient.d.ts.map +0 -1
  655. package/build/plugins/resource/sql/sqlClient.js +0 -153
  656. package/build/plugins/resource/sql/sqlClient.js.map +0 -1
  657. package/build/plugins/resource/sql/utils/checkInput.d.ts +0 -10
  658. package/build/plugins/resource/sql/utils/checkInput.d.ts.map +0 -1
  659. package/build/plugins/resource/sql/utils/checkInput.js +0 -87
  660. package/build/plugins/resource/sql/utils/checkInput.js.map +0 -1
  661. package/build/plugins/resource/sql/utils/commonUtils.d.ts +0 -13
  662. package/build/plugins/resource/sql/utils/commonUtils.d.ts.map +0 -1
  663. package/build/plugins/resource/sql/utils/commonUtils.js +0 -51
  664. package/build/plugins/resource/sql/utils/commonUtils.js.map +0 -1
  665. package/build/plugins/resource/sql/utils/contextUtils.d.ts +0 -5
  666. package/build/plugins/resource/sql/utils/contextUtils.d.ts.map +0 -1
  667. package/build/plugins/resource/sql/utils/contextUtils.js +0 -11
  668. package/build/plugins/resource/sql/utils/contextUtils.js.map +0 -1
  669. package/build/plugins/resource/sql/utils/dialogUtils.d.ts +0 -13
  670. package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +0 -1
  671. package/build/plugins/resource/sql/utils/dialogUtils.js +0 -21
  672. package/build/plugins/resource/sql/utils/dialogUtils.js.map +0 -1
  673. package/build/plugins/resource/sql/utils/message.d.ts +0 -16
  674. package/build/plugins/resource/sql/utils/message.d.ts.map +0 -1
  675. package/build/plugins/resource/sql/utils/message.js +0 -23
  676. package/build/plugins/resource/sql/utils/message.js.map +0 -1
  677. package/build/plugins/resource/sql/utils/telemetryUtils.d.ts +0 -17
  678. package/build/plugins/resource/sql/utils/telemetryUtils.d.ts.map +0 -1
  679. package/build/plugins/resource/sql/utils/telemetryUtils.js +0 -45
  680. package/build/plugins/resource/sql/utils/telemetryUtils.js.map +0 -1
  681. package/build/plugins/resource/sql/v2/index.d.ts +0 -15
  682. package/build/plugins/resource/sql/v2/index.d.ts.map +0 -1
  683. package/build/plugins/resource/sql/v2/index.js +0 -44
  684. package/build/plugins/resource/sql/v2/index.js.map +0 -1
  685. package/build/plugins/solution/fx-solution/index.d.ts +0 -5
  686. package/build/plugins/solution/fx-solution/index.d.ts.map +0 -1
  687. package/build/plugins/solution/fx-solution/index.js +0 -8
  688. package/build/plugins/solution/fx-solution/index.js.map +0 -1
  689. package/build/plugins/solution/fx-solution/solution.d.ts +0 -94
  690. package/build/plugins/solution/fx-solution/solution.d.ts.map +0 -1
  691. package/build/plugins/solution/fx-solution/solution.js +0 -1530
  692. package/build/plugins/solution/fx-solution/solution.js.map +0 -1
  693. package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts +0 -5
  694. package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +0 -1
  695. package/build/plugins/solution/fx-solution/v2/checkPermission.js +0 -196
  696. package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +0 -1
  697. package/build/plugins/solution/fx-solution/v2/collaborationUtil.d.ts +0 -28
  698. package/build/plugins/solution/fx-solution/v2/collaborationUtil.d.ts.map +0 -1
  699. package/build/plugins/solution/fx-solution/v2/collaborationUtil.js +0 -131
  700. package/build/plugins/solution/fx-solution/v2/collaborationUtil.js.map +0 -1
  701. package/build/plugins/solution/fx-solution/v2/createEnv.d.ts +0 -3
  702. package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +0 -1
  703. package/build/plugins/solution/fx-solution/v2/createEnv.js +0 -37
  704. package/build/plugins/solution/fx-solution/v2/createEnv.js.map +0 -1
  705. package/build/plugins/solution/fx-solution/v2/deploy.d.ts +0 -3
  706. package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +0 -1
  707. package/build/plugins/solution/fx-solution/v2/deploy.js +0 -143
  708. package/build/plugins/solution/fx-solution/v2/deploy.js.map +0 -1
  709. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +0 -22
  710. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +0 -1
  711. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +0 -850
  712. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +0 -1
  713. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +0 -4
  714. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +0 -1
  715. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +0 -31
  716. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +0 -1
  717. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts +0 -15
  718. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +0 -1
  719. package/build/plugins/solution/fx-solution/v2/getQuestions.js +0 -847
  720. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +0 -1
  721. package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts +0 -5
  722. package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +0 -1
  723. package/build/plugins/solution/fx-solution/v2/grantPermission.js +0 -209
  724. package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +0 -1
  725. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts +0 -8
  726. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +0 -1
  727. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +0 -226
  728. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +0 -1
  729. package/build/plugins/solution/fx-solution/v2/provision.d.ts +0 -3
  730. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +0 -1
  731. package/build/plugins/solution/fx-solution/v2/provision.js +0 -262
  732. package/build/plugins/solution/fx-solution/v2/provision.js.map +0 -1
  733. package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts +0 -3
  734. package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +0 -1
  735. package/build/plugins/solution/fx-solution/v2/provisionLocal.js +0 -117
  736. package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +0 -1
  737. package/build/plugins/solution/fx-solution/v2/publish.d.ts +0 -3
  738. package/build/plugins/solution/fx-solution/v2/publish.d.ts.map +0 -1
  739. package/build/plugins/solution/fx-solution/v2/publish.js +0 -46
  740. package/build/plugins/solution/fx-solution/v2/publish.js.map +0 -1
  741. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts +0 -5
  742. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +0 -1
  743. package/build/plugins/solution/fx-solution/v2/scaffolding.js +0 -161
  744. package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +0 -1
  745. package/build/plugins/solution/fx-solution/v2/solution.d.ts +0 -22
  746. package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +0 -1
  747. package/build/plugins/solution/fx-solution/v2/solution.js +0 -48
  748. package/build/plugins/solution/fx-solution/v2/solution.js.map +0 -1
  749. package/build/plugins/solution/index.d.ts +0 -2
  750. package/build/plugins/solution/index.d.ts.map +0 -1
  751. package/build/plugins/solution/index.js +0 -7
  752. package/build/plugins/solution/index.js.map +0 -1
  753. package/templates/plugins/resource/aad/auth/bot/js/sso/showUserInfo.js +0 -36
  754. package/templates/plugins/resource/aad/auth/bot/js/sso/ssoDialog.js +0 -201
  755. package/templates/plugins/resource/aad/auth/bot/js/sso/teamsSsoBot.js +0 -63
  756. package/templates/plugins/resource/aad/auth/bot/ts/sso/showUserInfo.ts +0 -38
  757. package/templates/plugins/resource/aad/auth/bot/ts/sso/ssoDialog.ts +0 -213
  758. package/templates/plugins/resource/aad/auth/bot/ts/sso/teamsSsoBot.ts +0 -75
@@ -2,7 +2,7 @@
2
2
 
3
3
  Microsoft Teams provides a mechanism by which an application can obtain the signed-in Teams user token to access Microsoft Graph (and other APIs). Teams Toolkit facilitates this interaction by abstracting some of the Azure Active Directory (AAD) flows and integrations behind some simple, high level APIs. This enables you to add single sign-on (SSO) features easily to your Teams application.
4
4
 
5
- For a bot application, SSO manifests as an Adaptive Card which the user can interact with to invoke the AAD consent flow.
5
+ For a bot application, user can invoke the AAD consent flow to obtain sso token to call Graph and other APIs.
6
6
 
7
7
  # Changes to your project
8
8
 
@@ -12,8 +12,10 @@ After you successfully added SSO into your project, Teams Toolkit will create an
12
12
 
13
13
  | Action | File | Description |
14
14
  | - | - | - |
15
- | Create| `aad.template.json` under `templates/appPackage` | The Azure Active Directory application manifest that is used to register the application with AAD. |
15
+ | Modify | `azureWebAppBotConfig.bicep` under `templates/azure/teamsFx` and `azure.parameters.dev.json` under `.fx/configs`| Insert environment variables used for bot web app to enable SSO feature |
16
16
  | Modify | `manifest.template.json` under `templates/appPackage` | An `webApplicationInfo` object will be added into your Teams app manifest template. This field is required by Teams when enabling SSO. |
17
+ | Modify | `projectSettings.json` under `.fx/configs` | Add bot sso capability, which will be used internally by Teams Toolkit. |
18
+ | Create| `aad.template.json` under `templates/appPackage` | The Azure Active Directory application manifest that is used to register the application with AAD. |
17
19
  | Create | `auth/bot` | Reference code, redirect pages and a `README.md` file. These files are provided for reference. See below for more information. |
18
20
 
19
21
  # Update your code to add SSO
@@ -25,39 +27,47 @@ As described above, the Teams Toolkit generated some configuration to set up you
25
27
  ## Set up the AAD redirects
26
28
 
27
29
  1. Move the `auth/bot/public` folder to `bot/src`. This folder contains HTML pages that the bot application hosts. When single sign-on flows are initiated with AAD, AAD will redirect the user to these pages.
28
- 2. Modify your `bot/src/index.ts` to add the appropriate `restify` routes to these pages.
30
+ 1. Modify your `bot/src/index` to add the appropriate `restify` routes to these pages.
31
+
32
+ ```ts
33
+ const path = require("path");
34
+
35
+ server.get(
36
+ "/auth-*.html",
37
+ restify.plugins.serveStatic({
38
+ directory: path.join(__dirname, "public"),
39
+ })
40
+ );
41
+ ```
29
42
 
30
43
  ## Update your business logic
31
44
 
32
- The sample business logic provides a function `showUserInfo` that requires an AAD token to call Microsoft Graph. This token is obtained by using the logged-in Teams user token. The flow is brought together in a dialog that will display a consent dialog if required; otherwise it will go straight to `showUserInfo`.
45
+ The sample business logic provides a sso command handler `ProfileSsoCommandHandler` that use an AAD token to call Microsoft Graph. This token is obtained by using the logged-in Teams user token. The flow is brought together in a dialog that will display a consent dialog if required.
33
46
 
34
47
  To make this work in your application:
35
48
 
36
- 1. Move `auth/bot/public` folder to `bot/src`.
37
- These folder contains HTML pages used for auth redirect, please note that you need to modify `bot/src/index` file to add routing to these pages.
38
49
 
39
- 1. Move `auth/bot/sso` folder to `bot/src`.
40
- These folder contains three files as reference for sso implementation:
41
- * `showUserInfo`: This implements a function to get user info with SSO token. You can follow this method and create your own method that requires SSO token.
42
- * `ssoDialog`: This creates a [ComponentDialog](https://docs.microsoft.com/en-us/javascript/api/botbuilder-dialogs/componentdialog?view=botbuilder-ts-latest) that used for SSO.
43
- * `teamsSsoBot`: This create a [TeamsActivityHandler](https://docs.microsoft.com/en-us/javascript/api/botbuilder/teamsactivityhandler?view=botbuilder-ts-latest) with `ssoDialog` and add `showUserInfo` as a command that can be triggered.
50
+ 1. Move `profileSsoCommandHandler` file under `auth/bot/sso` folder to `bot/src`. ProfileSsoCommandHandler class is a sso command handler to get user info with SSO token. You can follow this method and create your own sso command handler.
44
51
 
45
- 1. (Optional) Follow the code sample and register your own command with `addCommand` in this file.
46
- 1. Execute the following commands under `bot/`: `npm install isomorphic-fetch`
47
- 1. (For ts only) Execute the following commands under `bot/`: `npm install copyfiles` and replace following line in package.json:
48
- ```
49
- "tsc --build && shx cp -r ./src/adaptiveCards ./lib/src",
52
+ 1. Open `package.json` file, make sure that teamfx SDK version >= 1.2.0
53
+ 1. Execute the following commands under `bot` folder: `npm install isomorphic-fetch --save`
54
+ 1. (For ts only) Execute the following commands under `bot` folder: `npm install copyfiles --save-dev` and replace following line in package.json:
55
+
56
+ ```json
57
+ "build": "tsc --build && shx cp -r ./src/adaptiveCards ./lib/src",
50
58
  ```
59
+
51
60
  with:
52
- ```
53
- "tsc --build && shx cp -r ./src/adaptiveCards ./lib/src && copyfiles src/public/*.html lib/",
61
+
62
+ ```json
63
+ "build": "tsc --build && shx cp -r ./src/adaptiveCards ./lib/src && copyfiles src/public/*.html lib/",
54
64
  ```
55
65
  By doing this, the HTML pages used for auth redirect will be copied when building this bot project.
56
66
 
57
- 1. After adding the following files, you need to create a new `teamsSsoBot` instance in `bot/src/index` file.
58
- Please replace the following code:
59
- ```
60
- // Process Teams activity with Bot Framework.
67
+ 1. After adding the following files, you need to update `bot/src/index` file.
68
+ Please replace the following code to make sso consent flow works:
69
+
70
+ ```ts
61
71
  server.post("/api/messages", async (req, res) => {
62
72
  await commandBot.requestHandler(req, res);
63
73
  });
@@ -65,14 +75,9 @@ Please replace the following code:
65
75
 
66
76
  with:
67
77
 
68
- ```
69
- const handler = new TeamsSsoBot();
70
- // Process Teams activity with Bot Framework.
78
+ ```ts
71
79
  server.post("/api/messages", async (req, res) => {
72
- await commandBot.requestHandler(req, res, async (context)=> {
73
- await handler.run(context);
74
- })
75
- .catch((err) => {
80
+ await commandBot.requestHandler(req, res).catch((err) => {
76
81
  // Error message including "412" means it is waiting for user's consent, which is a normal process of SSO, sholdn't throw this error.
77
82
  if (!err.message.includes("412")) {
78
83
  throw err;
@@ -81,138 +86,194 @@ Please replace the following code:
81
86
  });
82
87
  ```
83
88
 
84
- 1. Add routing in `bot/src/index` file as below:
89
+ 1. Replace the options for `ConversationBot` instance in `bot/src/internal/initialize` to add the sso config and sso command handler:
85
90
 
86
- ```
87
- server.get(
88
- "/auth-*.html",
89
- restify.plugins.serveStatic({
90
- directory: path.join(__dirname, "public"),
91
- })
92
- );
91
+ ```ts
92
+ export const commandBot = new ConversationBot({
93
+ ...
94
+ command: {
95
+ enabled: true,
96
+ commands: [new HelloWorldCommandHandler()],
97
+ },
98
+ });
93
99
  ```
94
100
 
95
- 1. Add the following lines to `bot/src/index` to import `teamsSsoBot` and `path`:
96
-
97
- ```
98
- // For ts:
99
- import { TeamsSsoBot } from "./sso/teamsSsoBot";
100
- const path = require("path");
101
+ with:
101
102
 
102
- // For js:
103
- const { TeamsSsoBot } = require("./sso/teamsSsoBot");
104
- const path = require("path");
103
+ ```ts
104
+ import { ProfileSsoCommandHandler } from "../profileSsoCommandHandler";
105
+
106
+ export const commandBot = new ConversationBot({
107
+ ...
108
+ // To learn more about ssoConfig, please refer teamsfx sdk document: https://docs.microsoft.com/microsoftteams/platform/toolkit/teamsfx-sdk
109
+ ssoConfig: {
110
+ aad :{
111
+ scopes:["User.Read"],
112
+ },
113
+ },
114
+ command: {
115
+ enabled: true,
116
+ commands: [new HelloWorldCommandHandler() ],
117
+ ssoCommands: [new ProfileSsoCommandHandler()],
118
+ },
119
+ });
105
120
  ```
106
121
 
107
122
  1. Register your command in the Teams app manifest. Open `templates/appPackage/manifest.template.json`, and add following lines under `commands` in `commandLists` of your bot:
108
123
 
109
- ```
124
+ ```json
110
125
  {
111
- "title": "show",
126
+ "title": "profile",
112
127
  "description": "Show user profile using Single Sign On feature"
113
128
  }
114
129
  ```
115
130
 
116
- ## (Optional) Add a new command to the bot
131
+ ## (Optional) Add a new sso command to the bot
117
132
 
118
- After successfully add SSO in your project, you can also add a new command.
133
+ After successfully add SSO in your project, you can also add a new sso command.
119
134
 
120
- 1. Create a new file (e.g. `todo.ts` or `todo.js`) under `bot/src/` and add your own business logic to call Graph API:
135
+ 1. Create a new file (e.g. `photoSsoCommandHandler.ts` or `photoSsoCommandHandler.js`) under `bot/src/` and add your own business logic to call Graph API:
121
136
 
122
137
  ```TypeScript
123
138
  // for TypeScript:
124
- export async function showUserImage(
125
- context: TurnContext,
126
- ssoToken: string,
127
- param: any[]
128
- ): Promise<DialogTurnResult> {
129
- await context.sendActivity("Retrieving user photo from Microsoft Graph ...");
130
-
131
- // Init TeamsFx instance with SSO token
132
- const teamsfx = new TeamsFx().setSsoToken(ssoToken);
133
-
134
- // Update scope here. For example: Mail.Read, etc.
135
- const graphClient = createMicrosoftGraphClient(teamsfx, param[0]);
136
-
137
- // You can add following code to get your photo:
138
- // let photoUrl = "";
139
- // try {
140
- // const photo = await graphClient.api("/me/photo/$value").get();
141
- // const arrayBuffer = await photo.arrayBuffer();
142
- // const buffer=Buffer.from(arrayBuffer, 'binary');
143
- // photoUrl = "data:image/png;base64," + buffer.toString("base64");
144
- // } catch {
145
- // // Could not fetch photo from user's profile, return empty string as placeholder.
146
- // }
147
- // if (photoUrl) {
148
- // await context.sendActivity(
149
- // `You can find your photo here: ${photoUrl}`
150
- // );
151
- // } else {
152
- // await context.sendActivity("Could not retrieve your photo from Microsoft Graph. Please make sure you have uploaded your photo.");
153
- // }
154
-
155
- return;
139
+ import { Activity, TurnContext, ActivityTypes } from "botbuilder";
140
+ import "isomorphic-fetch";
141
+ import {
142
+ CommandMessage,
143
+ TriggerPatterns,
144
+ TeamsFx,
145
+ createMicrosoftGraphClient,
146
+ TeamsFxBotSsoCommandHandler,
147
+ TeamsBotSsoPromptTokenResponse,
148
+ } from "@microsoft/teamsfx";
149
+
150
+ export class PhotoSsoCommandHandler implements TeamsFxBotSsoCommandHandler {
151
+ triggerPatterns: TriggerPatterns = "photo";
152
+
153
+ async handleCommandReceived(
154
+ context: TurnContext,
155
+ message: CommandMessage,
156
+ tokenResponse: TeamsBotSsoPromptTokenResponse,
157
+ ): Promise<string | Partial<Activity> | void> {
158
+ await context.sendActivity("Retrieving user information from Microsoft Graph ...");
159
+
160
+ const teamsfx = new TeamsFx().setSsoToken(tokenResponse.ssoToken);
161
+
162
+ const graphClient = createMicrosoftGraphClient(teamsfx, ["User.Read"]);
163
+
164
+ let photoUrl = "";
165
+ try {
166
+ const photo = await graphClient.api("/me/photo/$value").get();
167
+ const arrayBuffer = await photo.arrayBuffer();
168
+ const buffer=Buffer.from(arrayBuffer, 'binary');
169
+ photoUrl = "data:image/png;base64," + buffer.toString("base64");
170
+ } catch {
171
+ // Could not fetch photo from user's profile, return empty string as placeholder.
172
+ }
173
+ if (photoUrl) {
174
+ const photoMessage: Partial<Activity> = {
175
+ type: ActivityTypes.Message,
176
+ text: 'This is your photo:',
177
+ attachments: [
178
+ {
179
+ name: 'photo.png',
180
+ contentType: 'image/png',
181
+ contentUrl: photoUrl
182
+ }
183
+ ]
184
+ };
185
+ return photoMessage;
186
+ } else {
187
+ return "Could not retrieve your photo from Microsoft Graph. Please make sure you have uploaded your photo.";
188
+ }
189
+ }
156
190
  }
157
191
  ```
158
192
 
159
193
  ```javascript
160
194
  // for JavaScript:
161
- async function showUserImage(context, ssoToken, param) {
162
- await context.sendActivity("Retrieving user photo from Microsoft Graph ...");
163
-
164
- // Init TeamsFx instance with SSO token
165
- const teamsfx = new TeamsFx().setSsoToken(ssoToken);
166
-
167
- // Update scope here. For example: Mail.Read, etc.
168
- const graphClient = createMicrosoftGraphClient(teamsfx, param[0]);
195
+ const { ActivityTypes } = require("botbuilder");
196
+ require("isomorphic-fetch");
197
+ const { createMicrosoftGraphClient, TeamsFx } = require("@microsoft/teamsfx");
198
+
199
+ class PhotoSsoCommandHandler {
200
+ triggerPatterns = "photo";
201
+
202
+ async handleCommandReceived(context, message, tokenResponse) {
203
+ await context.sendActivity("Retrieving user information from Microsoft Graph ...");
204
+
205
+ const teamsfx = new TeamsFx().setSsoToken(tokenResponse.ssoToken);
206
+
207
+ const graphClient = createMicrosoftGraphClient(teamsfx, ["User.Read"]);
169
208
 
170
- // You can add following code to get your photo:
171
- // let photoUrl = "";
172
- // try {
173
- // const photo = await graphClient.api("/me/photo/$value").get();
174
- // const arrayBuffer = await photo.arrayBuffer();
175
- // const buffer=Buffer.from(arrayBuffer, 'binary');
176
- // photoUrl = "data:image/png;base64," + buffer.toString("base64");
177
- // } catch {
178
- // // Could not fetch photo from user's profile, return empty string as placeholder.
179
- // }
180
- // if (photoUrl) {
181
- // await context.sendActivity(
182
- // `You can find your photo here: ${photoUrl}`
183
- // );
184
- // } else {
185
- // await context.sendActivity("Could not retrieve your photo from Microsoft Graph. Please make sure you have uploaded your photo.");
186
- // }
187
-
188
- return;
209
+ let photoUrl = "";
210
+ try {
211
+ const photo = await graphClient.api("/me/photo/$value").get();
212
+ const arrayBuffer = await photo.arrayBuffer();
213
+ const buffer=Buffer.from(arrayBuffer, 'binary');
214
+ photoUrl = "data:image/png;base64," + buffer.toString("base64");
215
+ } catch {
216
+ // Could not fetch photo from user's profile, return empty string as placeholder.
217
+ }
218
+ if (photoUrl) {
219
+ const photoMessage = {
220
+ type: ActivityTypes.Message,
221
+ text: 'This is your photo:',
222
+ attachments: [
223
+ {
224
+ name: 'photo.png',
225
+ contentType: 'image/png',
226
+ contentUrl: photoUrl
227
+ }
228
+ ]
229
+ };
230
+ return photoMessage;
231
+ } else {
232
+ return "Could not retrieve your photo from Microsoft Graph. Please make sure you have uploaded your photo.";
233
+ }
234
+ }
189
235
  }
190
236
 
191
237
  module.exports = {
192
- showUserImage,
238
+ PhotoSsoCommandHandler,
193
239
  };
194
- ```
195
-
196
- 1. Register a new command using `addCommand` in `teamsSsoBot`:
197
-
198
- Find the following line:
199
240
 
200
241
  ```
201
- this.dialog.addCommand("ShowUserProfile", "show", showUserInfo);
242
+
243
+ 1. Put `PhotoSsoCommandHandler` instance to `ssoCommands` array in `bot/src/internal/initialize.ts` as below:
244
+
245
+ ```ts
246
+ // for TypeScript:
247
+ import { PhotoSsoCommandHandler } from "../photoSsoCommandHandler";
248
+
249
+ export const commandBot = new ConversationBot({
250
+ ...
251
+ command: {
252
+ ...
253
+ ssoCommands: [new ProfileSsoCommandHandler(), new PhotoSsoCommandHandler()],
254
+ },
255
+ });
202
256
  ```
203
257
 
204
- and add following lines after the above line to register a new command `photo` and hook up with method `showUserImage` added above:
258
+ ```javascript
259
+ // for JavaScript:
260
+ ...
261
+ const { PhotoSsoCommandHandler } = require("../photoSsoCommandHandler");
262
+
263
+ const commandBot = new ConversationBot({
264
+ ...
265
+ command: {
266
+ ...
267
+ ssoCommands: [new ProfileSsoCommandHandler(), new PhotoSsoCommandHandler()]
268
+ },
269
+ });
270
+ ...
205
271
 
206
272
  ```
207
- // As shown here, you can add your own parameter into the `showUserImage` method
208
- // You can also use regular expression for the command here
209
- const scope = ["User.Read"];
210
- this.dialog.addCommand("ShowUserPhoto", new RegExp("photo\s*.*"), showUserImage, scope);
211
- ```
212
273
 
213
274
  1. Register your command in the Teams app manifest. Open 'templates/appPackage/manifest.template.json', and add following lines under `commands` in `commandLists` of your bot:
214
275
 
215
- ```
276
+ ```json
216
277
  {
217
278
  "title": "photo",
218
279
  "description": "Show user photo using Single Sign On feature"
@@ -234,3 +295,20 @@ The AAD [manifest](https://docs.microsoft.com/azure/active-directory/develop/ref
234
295
  Follow this [document](https://aka.ms/teamsfx-aad-manifest#customize-aad-manifest-template) if you need to include additional API permissions to access your desired APIs.
235
296
 
236
297
  Follow this [document](https://aka.ms/teamsfx-aad-manifest#How-to-view-the-AAD-app-on-the-Azure-portal) to view your AAD application in Azure Portal.
298
+
299
+ # Trouble Shooting
300
+
301
+ ## Login page does not pop up after clicking `continue`
302
+
303
+ First check whether your auth-start page is available by directly go to "{your-bot-endpoint}/auth-start.html" in your browser. You can find your-bot-endpoint in `.fx/states/state.{env}.json`.
304
+
305
+ - If the auth-start page can be opened in your browser, please try sign out current account in Teams app page and sign in again and run the command again.
306
+ - If encounter with ngrok page below when local debug, please follow the steps to solve this issue.
307
+
308
+ 1. Stop debugging in Visual Studio Code.
309
+ 1. Sign up an ngrok account in https://dashboard.ngrok.com/signup.
310
+ 1. Copy your personal ngrok authtoken from https://dashboard.ngrok.com/get-started/your-authtoken.
311
+ 1. Run `npx ngrok authtoken <your-personal-ngrok-authtoken>` in Visual Studio Code terminal.
312
+ 1. Start debugging the project again by hitting the F5 key in Visual Studio Code.
313
+
314
+ ![ngrok auth page](https://user-images.githubusercontent.com/63089166/190566043-6957edc9-c5b8-409d-b532-979ee0ef6ce5.png)
@@ -0,0 +1,30 @@
1
+ const { createMicrosoftGraphClient, TeamsFx } = require("@microsoft/teamsfx");
2
+ require("isomorphic-fetch");
3
+
4
+ class ProfileSsoCommandHandler {
5
+ triggerPatterns = "profile";
6
+
7
+ async handleCommandReceived(context, message, tokenResponse) {
8
+ await context.sendActivity("Retrieving user information from Microsoft Graph ...");
9
+
10
+ // Init TeamsFx instance with SSO token
11
+ const teamsfx = new TeamsFx().setSsoToken(tokenResponse.ssoToken);
12
+
13
+ // Add scope for your Azure AD app. For example: Mail.Read, etc.
14
+ const graphClient = createMicrosoftGraphClient(teamsfx, ["User.Read"]);
15
+
16
+ // Call graph api use `graph` instance to get user profile information
17
+ const me = await graphClient.api("/me").get();
18
+
19
+ if (me) {
20
+ // Bot will send the user profile info to user
21
+ return `Your command is '${message.text}' and you're logged in as ${me.displayName} (${me.userPrincipalName}).`;
22
+ } else {
23
+ return "Could not retrieve profile information from Microsoft Graph.";
24
+ }
25
+ }
26
+ }
27
+
28
+ module.exports = {
29
+ ProfileSsoCommandHandler,
30
+ };
@@ -0,0 +1,38 @@
1
+ import { Activity, TurnContext } from "botbuilder";
2
+ import {
3
+ CommandMessage,
4
+ TriggerPatterns,
5
+ TeamsFx,
6
+ createMicrosoftGraphClient,
7
+ TeamsFxBotSsoCommandHandler,
8
+ TeamsBotSsoPromptTokenResponse,
9
+ } from "@microsoft/teamsfx";
10
+ import "isomorphic-fetch";
11
+
12
+ export class ProfileSsoCommandHandler implements TeamsFxBotSsoCommandHandler {
13
+ triggerPatterns: TriggerPatterns = "profile";
14
+
15
+ async handleCommandReceived(
16
+ context: TurnContext,
17
+ message: CommandMessage,
18
+ tokenResponse: TeamsBotSsoPromptTokenResponse
19
+ ): Promise<string | Partial<Activity> | void> {
20
+ await context.sendActivity("Retrieving user information from Microsoft Graph ...");
21
+
22
+ // Init TeamsFx instance with SSO token
23
+ const teamsfx = new TeamsFx().setSsoToken(tokenResponse.ssoToken);
24
+
25
+ // Add scope for your Azure AD app. For example: Mail.Read, etc.
26
+ const graphClient = createMicrosoftGraphClient(teamsfx, ["User.Read"]);
27
+
28
+ // Call graph api use `graph` instance to get user profile information
29
+ const me = await graphClient.api("/me").get();
30
+
31
+ if (me) {
32
+ // Bot will send the user profile info to user
33
+ return `Your command is '${message.text}' and you're logged in as ${me.displayName} (${me.userPrincipalName}).`;
34
+ } else {
35
+ return "Could not retrieve profile information from Microsoft Graph.";
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,82 @@
1
+ # SPFx (SharePoint Framework) App
2
+
3
+ ## Summary
4
+
5
+ The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and extending Microsoft Teams. This project applies SPFx to Teams personal tab and group tab support.
6
+
7
+ ## Used SharePoint Framework Version
8
+
9
+ ![version](https://img.shields.io/badge/version-1.16.0%20beta.1-green.svg)
10
+
11
+ ## Applies to
12
+
13
+ - [SharePoint Framework](https://aka.ms/spfx)
14
+ - [Microsoft 365 tenant](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant)
15
+
16
+ ## Prerequisites
17
+
18
+ > - Node.js v16
19
+ > - An Microsoft 365 account. Get your own free Microsoft 365 tenant from [Microsoft 365 developer program](https://developer.microsoft.com/en-us/microsoft-365/dev-program)
20
+
21
+ ## Solution
22
+
23
+ Solution|Author(s)
24
+ --------|---------
25
+ folder name | Author details (name, company, twitter alias with link)
26
+
27
+ ## Version history
28
+
29
+ Version|Date|Comments
30
+ -------|----|--------
31
+ 1.1|March 10, 2021|Update comment
32
+ 1.0|January 29, 2021|Initial release
33
+
34
+ ## Disclaimer
35
+
36
+ **THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
37
+
38
+ ---
39
+
40
+ ## Minimal Path to Awesome
41
+
42
+ 1. Install the latest version of [Node.js LTS 16.x](https://nodejs.org/en/download/releases/) (Note: SPFx v1.16.0-beta.1 support Node.js v16).
43
+ 2. You can either download [Visual Studio Code](https://code.visualstudio.com) and install [Teams Toolkit Visual Studio Code Extension](https://aka.ms/teams-toolkit) or download TeamsFx CLI.
44
+ 3. Open the project with VSCode, click `Provision in the cloud` in DEPLOYMENT panel of Teams Toolkit extension.
45
+
46
+ Or you can use TeamsFx CLI with running this cmd under your project path:
47
+ `teamsfx provision`
48
+
49
+ It will provision an app in Teams App Studio. You may need to login with your Microsoft 365 tenant admin account.
50
+
51
+ 4. Build and Deploy your SharePoint Package.
52
+ - Click `Deploy to the cloud` in DEPLOYMENT panel of Teams Toolkit extension, or run `Teams: Deploy to the cloud` from command palette. This will generate a SharePoint package (*.sppkg) under sharepoint/solution folder.
53
+
54
+ Or you can use TeamsFx CLI with running this cmd under your project path:
55
+ `teamsfx deploy`
56
+
57
+ - After building the *.sppkg, the Teams Toolkit extension will upload and deploy it to your tenant App Catalog. Only tenant App Catalog site admin has permission to do it. You can create your test tenant following [Setup your Microsoft 365 tenant](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant).
58
+ 5. Go back to Teams Toolkit extension, click `Teams: Publish to Teams` in DEPLOYMENT panel.
59
+
60
+ Or you can use TeamsFx CLI with running this cmd under your project path:
61
+ `teamsfx publish`
62
+
63
+ You will find your app in [Microsoft Teams admin center](https://admin.teams.microsoft.com/policies/manage-apps). Enter your app name in the search box. Click the item and select `Publish` in the Publishing status.
64
+
65
+ 6. You may need to wait for a few minutes after publishing your teams app. And then login to Teams, and you will find your app in the `Apps - Built for {your-tenant-name}` category.
66
+
67
+ 7. Click "Add" to use the app as a personal tab. Click "Add to a team" to use the app as a group tab.
68
+
69
+ ## Debug
70
+
71
+ Start debugging the project by hitting the `F5` key in Visual Studio Code. Alternatively use the `Run and Debug Activity Panel` in Visual Studio Code and click the `Start Debugging` green arrow button.
72
+
73
+ - `Teams workbench` is the default debug configuration. Using this configuration, you can install the SPFx app within Teams context as a Teams app.
74
+ - `Hosted workbench`. You need to navigate to [launch.json](.vscode/launch.json), replace `enter-your-SharePoint-site` with your SharePoint site, eg. `https://{your-tenant-name}.sharepoint.com/sites/{your-team-name}/_layouts/workbench.aspx`. You can also use root site if you haven't created one, eg. `https://{your-tenant-name}.sharepoint.com/_layouts/workbench.aspx`.
75
+
76
+ ## References
77
+
78
+ - [Getting started with SharePoint Framework](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant)
79
+ - [Building for Microsoft teams](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/build-for-teams-overview)
80
+ - [Use Microsoft Graph in your solution](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/using-microsoft-graph-apis)
81
+ - [Publish SharePoint Framework applications to the Marketplace](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/publish-to-marketplace-overview)
82
+ - [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - Guidance, tooling, samples and open-source controls for your Microsoft 365 development
@@ -1,10 +0,0 @@
1
- export * from "./correlator";
2
- export * from "./deps-checker";
3
- export * from "./featureFlags";
4
- export * from "./globalState";
5
- export * from "./local";
6
- export * from "./permissionInterface";
7
- export * from "./projectSettingsHelper";
8
- export * from "./samples";
9
- export * from "./tools";
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -1,15 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- "use strict";
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- const tslib_1 = require("tslib");
6
- tslib_1.__exportStar(require("./correlator"), exports);
7
- tslib_1.__exportStar(require("./deps-checker"), exports);
8
- tslib_1.__exportStar(require("./featureFlags"), exports);
9
- tslib_1.__exportStar(require("./globalState"), exports);
10
- tslib_1.__exportStar(require("./local"), exports);
11
- tslib_1.__exportStar(require("./permissionInterface"), exports);
12
- tslib_1.__exportStar(require("./projectSettingsHelper"), exports);
13
- tslib_1.__exportStar(require("./samples"), exports);
14
- tslib_1.__exportStar(require("./tools"), exports);
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,uDAA6B;AAC7B,yDAA+B;AAC/B,yDAA+B;AAC/B,wDAA8B;AAC9B,kDAAwB;AACxB,gEAAsC;AACtC,kEAAwC;AACxC,oDAA0B;AAC1B,kDAAwB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"simpleAuth.d.ts","sourceRoot":"","sources":["../../../src/component/resource/simpleAuth.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,OAAO,EACP,qBAAqB,EAErB,iBAAiB,EACjB,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,kBAAkB,CAAC;AAY1B,qBACa,UAAU;IASf,SAAS,CACb,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAsBhC,SAAS,CACb,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAkBtC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,SAAgB;IAM/D,eAAe,CAAC,OAAO,EAAE,SAAS,GAAG;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;CAiCxE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"simpleAuth.js","sourceRoot":"","sources":["../../../src/component/resource/simpleAuth.ts"],"names":[],"mappings":"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"}
@@ -1,11 +0,0 @@
1
- export * from "./concurrentLocker";
2
- export * from "./contextInjector";
3
- export * from "./envInfoLoader";
4
- export * from "./envInfoWriter";
5
- export * from "./errorHandler";
6
- export * from "./projectMigrator";
7
- export * from "./projectSettingsLoader";
8
- export * from "./projectSettingsWriter";
9
- export * from "./questionModel";
10
- export * from "./solutionLoader";
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}