@microsoft/teamsfx-core 2.0.6-alpha.e73e76fb5.0 → 2.0.6-alpha.e92fb7848.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.
- package/build/common/constants.d.ts +3 -2
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.js +3 -0
- package/build/common/deps-checker/checkerFactory.js.map +1 -1
- package/build/common/deps-checker/constant/telemetry.d.ts +1 -0
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
- package/build/common/deps-checker/constant/telemetry.js +1 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -1
- package/build/common/deps-checker/coreDepsLoggerAdapter.d.ts +17 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.d.ts.map +1 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.js +47 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.js.map +1 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.d.ts +16 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.d.ts.map +1 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.js +53 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.js.map +1 -0
- package/build/common/deps-checker/depsChecker.d.ts +6 -1
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js +6 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +2 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +2 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/testToolChecker.d.ts +14 -3
- package/build/common/deps-checker/internal/testToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/testToolChecker.js +178 -70
- package/build/common/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js +3 -45
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
- package/build/common/deps-checker/util/downloadHelper.d.ts +15 -0
- package/build/common/deps-checker/util/downloadHelper.d.ts.map +1 -0
- package/build/common/deps-checker/util/downloadHelper.js +59 -0
- package/build/common/deps-checker/util/downloadHelper.js.map +1 -0
- package/build/common/featureFlags.d.ts +3 -3
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +11 -12
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/local/constants.d.ts +1 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +1 -0
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts +5 -4
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +9 -2
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts +0 -1
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +1 -29
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts +1 -0
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +85 -7
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectTypeChecker.d.ts +38 -0
- package/build/common/projectTypeChecker.d.ts.map +1 -0
- package/build/common/projectTypeChecker.js +217 -0
- package/build/common/projectTypeChecker.js.map +1 -0
- package/build/common/samples.d.ts +13 -7
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +83 -49
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.js +2 -4
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -1
- package/build/common/spec-parser/constants.d.ts +23 -14
- package/build/common/spec-parser/constants.d.ts.map +1 -1
- package/build/common/spec-parser/constants.js +23 -15
- package/build/common/spec-parser/constants.js.map +1 -1
- package/build/common/spec-parser/index.browser.d.ts +6 -0
- package/build/common/spec-parser/index.browser.d.ts.map +1 -0
- package/build/common/spec-parser/index.browser.js +16 -0
- package/build/common/spec-parser/index.browser.js.map +1 -0
- package/build/common/spec-parser/index.d.ts +5 -0
- package/build/common/spec-parser/index.d.ts.map +1 -0
- package/build/common/spec-parser/index.js +16 -0
- package/build/common/spec-parser/index.js.map +1 -0
- package/build/common/spec-parser/interfaces.d.ts +37 -3
- package/build/common/spec-parser/interfaces.d.ts.map +1 -1
- package/build/common/spec-parser/interfaces.js +3 -3
- package/build/common/spec-parser/interfaces.js.map +1 -1
- package/build/common/spec-parser/manifestUpdater.d.ts +4 -4
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -1
- package/build/common/spec-parser/manifestUpdater.js +49 -110
- package/build/common/spec-parser/manifestUpdater.js.map +1 -1
- package/build/common/spec-parser/specFilter.d.ts +1 -1
- package/build/common/spec-parser/specFilter.d.ts.map +1 -1
- package/build/common/spec-parser/specFilter.js +2 -2
- package/build/common/spec-parser/specFilter.js.map +1 -1
- package/build/common/spec-parser/specParser.browser.d.ts +46 -0
- package/build/common/spec-parser/specParser.browser.d.ts.map +1 -0
- package/build/common/spec-parser/specParser.browser.js +139 -0
- package/build/common/spec-parser/specParser.browser.js.map +1 -0
- package/build/common/spec-parser/specParser.d.ts +11 -11
- package/build/common/spec-parser/specParser.d.ts.map +1 -1
- package/build/common/spec-parser/specParser.js +100 -113
- package/build/common/spec-parser/specParser.js.map +1 -1
- package/build/common/spec-parser/utils.d.ts +18 -5
- package/build/common/spec-parser/utils.d.ts.map +1 -1
- package/build/common/spec-parser/utils.js +304 -41
- package/build/common/spec-parser/utils.js.map +1 -1
- package/build/common/telemetry.d.ts +23 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +40 -1
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +1 -1
- package/build/common/tools.js.map +1 -1
- package/build/component/configManager/lifecycle.d.ts +1 -0
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +17 -5
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +2 -3
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/coordinator/index.d.ts +2 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +11 -10
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +32 -0
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.js +1 -1
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.js +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.js.map +1 -1
- package/build/component/driver/aad/permissions/index.d.ts +3 -0
- package/build/component/driver/aad/permissions/index.d.ts.map +1 -1
- package/build/component/driver/aad/permissions/index.js +34 -1
- package/build/component/driver/aad/permissions/index.js.map +1 -1
- package/build/component/driver/aad/permissions/permissions.json +42 -42
- package/build/component/driver/aad/update.d.ts +1 -0
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +19 -17
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +9 -9
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/constants.js +1 -1
- package/build/component/driver/aad/utility/constants.js.map +1 -1
- package/build/component/driver/add/addWebPart.d.ts.map +1 -1
- package/build/component/driver/add/addWebPart.js +2 -0
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/add/interface/AddWebPartArgs.d.ts +4 -0
- package/build/component/driver/add/interface/AddWebPartArgs.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.d.ts +17 -0
- package/build/component/driver/apiKey/create.d.ts.map +1 -0
- package/build/component/driver/apiKey/create.js +228 -0
- package/build/component/driver/apiKey/create.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js +22 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js +22 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js +21 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.js +21 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.js.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.d.ts +7 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.d.ts.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.js +5 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.js.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.d.ts +7 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.d.ts.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.js +10 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.js.map +1 -0
- package/build/component/driver/apiKey/utility/constants.d.ts +10 -0
- package/build/component/driver/apiKey/utility/constants.d.ts.map +1 -0
- package/build/component/driver/apiKey/utility/constants.js +15 -0
- package/build/component/driver/apiKey/utility/constants.js.map +1 -0
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +3 -2
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +5 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts +5 -0
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +27 -6
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +2 -1
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +5 -2
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/index.d.ts +1 -0
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +1 -0
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +12 -7
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +52 -23
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +13 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +38 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +2 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +2 -0
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +26 -6
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.d.ts +44 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.js +21 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.d.ts +15 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.js +5 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -0
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +9 -9
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts +20 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -0
- package/build/component/driver/teamsApp/teamsappMgr.js +278 -0
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -0
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +7 -2
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +49 -15
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +47 -30
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +4 -2
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +105 -20
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/error.d.ts +5 -8
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +16 -16
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts +5 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +26 -27
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +6 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +30 -12
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.js +1 -1
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +41 -37
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +7 -0
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -14
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -14
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/utils.d.ts +7 -5
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +35 -16
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts +1 -1
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +4 -1
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +1 -0
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +31 -1
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/common.d.ts +3 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +11 -4
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +1 -0
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +6 -1
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/fileOperation.d.ts +1 -1
- package/build/component/utils/fileOperation.d.ts.map +1 -1
- package/build/component/utils/fileOperation.js +34 -48
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/metadataGraphPermssion.d.ts +16 -0
- package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -0
- package/build/component/utils/metadataGraphPermssion.js +96 -0
- package/build/component/utils/metadataGraphPermssion.js.map +1 -0
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +2 -0
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/core/FxCore.d.ts +24 -1
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +190 -25
- package/build/core/FxCore.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +11 -10
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +4 -4
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +1 -1
- package/build/error/common.d.ts +9 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +34 -1
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts +6 -0
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +25 -1
- package/build/error/deploy.js.map +1 -1
- package/build/error/teamsApp.d.ts +4 -1
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +13 -1
- package/build/error/teamsApp.js.map +1 -1
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +8 -1
- package/build/index.js.map +1 -1
- package/build/question/create.d.ts +9 -7
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +149 -91
- package/build/question/create.js.map +1 -1
- package/build/question/generator.js +1 -3
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +1 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +3 -0
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +4 -4
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/DeployAadManifestInputs.d.ts +1 -1
- package/build/question/inputs/DeployAadManifestInputs.d.ts.map +1 -1
- package/build/question/inputs/PermissionGrantInputs.d.ts +2 -2
- package/build/question/inputs/PermissionGrantInputs.d.ts.map +1 -1
- package/build/question/inputs/PermissionListInputs.d.ts +1 -1
- package/build/question/inputs/PermissionListInputs.d.ts.map +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +2 -0
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +9 -9
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/CreateSampleProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateSampleProjectOptions.js +5 -1
- package/build/question/options/CreateSampleProjectOptions.js.map +1 -1
- package/build/question/options/DeployAadManifestOptions.js +2 -2
- package/build/question/options/DeployAadManifestOptions.js.map +1 -1
- package/build/question/options/PermissionGrantOptions.js +2 -2
- package/build/question/options/PermissionGrantOptions.js.map +1 -1
- package/build/question/options/PermissionListOptions.js +2 -2
- package/build/question/options/PermissionListOptions.js.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js +9 -0
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
- package/build/question/other.d.ts +3 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +100 -6
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +3 -2
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +3 -2
- package/build/question/questionNames.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +11 -2
- package/build/ui/visitor.js.map +1 -1
- package/package.json +16 -23
- package/resource/package.nls.json +84 -59
- package/resource/yaml-schema/v1.3/yaml.schema.json +81 -35
- package/templates/core/v3Migration/csharp.app.local.yml +6 -6
- package/templates/core/v3Migration/csharp.app.yml +6 -6
- package/templates/core/v3Migration/js.ts.app.local.yml +11 -11
- package/templates/core/v3Migration/js.ts.app.yml +12 -12
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/Pages/BotAuthorizeEndPage.cshtml +55 -51
- package/templates/plugins/resource/aad/auth/V3/Enable SSO.txt +2 -2
- package/templates/plugins/resource/aad/auth/bot/README.md +13 -13
- package/templates/plugins/resource/aad/auth/bot/README.txt +7 -7
- package/templates/plugins/resource/aad/auth/bot/csharp/Pages/BotAuthorizeEndPage.cshtml +55 -51
- package/templates/plugins/resource/aad/auth/bot/js/public/auth-end.html +6 -2
- package/templates/plugins/resource/aad/auth/bot/ts/public/auth-end.html +5 -1
- package/templates/plugins/resource/aad/auth/tab/README.md +6 -6
- package/templates/plugins/resource/aad/auth/tab/README.txt +5 -5
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-end.html +16 -9
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-start.html +11 -7
- package/templates/plugins/resource/aad/auth/tab/js/sso/GetUserProfile.jsx +1 -1
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-end.html +16 -9
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-start.html +11 -7
- package/templates/plugins/resource/aad/auth/tab/ts/sso/GetUserProfile.tsx +1 -1
|
@@ -70,13 +70,14 @@
|
|
|
70
70
|
{ "$ref": "#/definitions/teamsAppExtendToM365" },
|
|
71
71
|
{ "$ref": "#/definitions/spfxDeploy" },
|
|
72
72
|
{ "$ref": "#/definitions/teamsAppCopyAppPackageToSPFx" },
|
|
73
|
-
{ "$ref": "#/definitions/script" }
|
|
73
|
+
{ "$ref": "#/definitions/script" },
|
|
74
|
+
{ "$ref": "#/definitions/apiKeyRegister"}
|
|
74
75
|
]
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
"aadAppCreateBase": {
|
|
78
79
|
"type": "object",
|
|
79
|
-
"description": "Create
|
|
80
|
+
"description": "Create Microsoft Entra application and client secret (optional). Refer to https://aka.ms/teamsfx-actions/aadapp-create for more details.",
|
|
80
81
|
"required": ["uses", "writeToEnvironmentFile"],
|
|
81
82
|
"properties": {
|
|
82
83
|
"name": {
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
},
|
|
93
94
|
"uses": {
|
|
94
95
|
"type": "string",
|
|
95
|
-
"description": "Create
|
|
96
|
+
"description": "Create Microsoft Entra application when the environment variable that stores clientId is empty. Also create client secret for the application when generateClientSecret parameter is true and the environment variable that stores clientSecret is empty. When creating new Microsoft Entra application, this action generates clientId, objectId, tenantId, authority and authorityHost. When creating new client secret, this action generates clientSecret. Refer to https://aka.ms/teamsfx-actions/aadapp-create for more details.",
|
|
96
97
|
"const": "aadApp/create"
|
|
97
98
|
}
|
|
98
99
|
}
|
|
@@ -114,11 +115,11 @@
|
|
|
114
115
|
"properties": {
|
|
115
116
|
"name": {
|
|
116
117
|
"type": "string",
|
|
117
|
-
"description": "The name of
|
|
118
|
+
"description": "The name of Microsoft Entra application. Note: when you run aadApp/update, the Microsoft Entra application name will be updated based on the definition in manifest. If you don't want to change the name, ensure the name in Microsoft Entra application manifest is the same with the name defined here."
|
|
118
119
|
},
|
|
119
120
|
"generateClientSecret": {
|
|
120
121
|
"type": "boolean",
|
|
121
|
-
"description": "Whether to generate client secret for the
|
|
122
|
+
"description": "Whether to generate client secret for the Microsoft Entra application. When the value is true, you need to specify the name of environment variable that stores the value of client secret in writeToEnvironmentVariable. For example: `clientSecret: SECRET_MY_AAD_APP_CLIENT_SECRET`.",
|
|
122
123
|
"const": true
|
|
123
124
|
},
|
|
124
125
|
"signInAudience": {
|
|
@@ -135,27 +136,27 @@
|
|
|
135
136
|
"required": ["clientId", "objectId", "clientSecret"],
|
|
136
137
|
"properties": {
|
|
137
138
|
"clientId": {
|
|
138
|
-
"description": "Required. The client (application) id of created
|
|
139
|
+
"description": "Required. The client (application) id of created Microsoft Entra application.",
|
|
139
140
|
"$ref": "#/definitions/envVarName"
|
|
140
141
|
},
|
|
141
142
|
"objectId": {
|
|
142
|
-
"description": "Required. The object id of created
|
|
143
|
+
"description": "Required. The object id of created Microsoft Entra application.",
|
|
143
144
|
"$ref": "#/definitions/envVarName"
|
|
144
145
|
},
|
|
145
146
|
"clientSecret": {
|
|
146
|
-
"description": "Required when generateClientSecret is true. The generated client secret of the
|
|
147
|
+
"description": "Required when generateClientSecret is true. The generated client secret of the Microsoft Entra application.",
|
|
147
148
|
"$ref": "#/definitions/secretEnvVarName"
|
|
148
149
|
},
|
|
149
150
|
"tenantId": {
|
|
150
|
-
"description": "The tenant id of created
|
|
151
|
+
"description": "The tenant id of created Microsoft Entra application.",
|
|
151
152
|
"$ref": "#/definitions/envVarName"
|
|
152
153
|
},
|
|
153
154
|
"authority": {
|
|
154
|
-
"description": "The authority of created
|
|
155
|
+
"description": "The authority of created Microsoft Entra application.",
|
|
155
156
|
"$ref": "#/definitions/envVarName"
|
|
156
157
|
},
|
|
157
158
|
"authorityHost": {
|
|
158
|
-
"description": "The authority host name of created
|
|
159
|
+
"description": "The authority host name of created Microsoft Entra application.",
|
|
159
160
|
"$ref": "#/definitions/envVarName"
|
|
160
161
|
}
|
|
161
162
|
}
|
|
@@ -179,11 +180,11 @@
|
|
|
179
180
|
"properties": {
|
|
180
181
|
"name": {
|
|
181
182
|
"type": "string",
|
|
182
|
-
"description": "The name of
|
|
183
|
+
"description": "The name of Microsoft Entra application. Note: when you run aadApp/update, the Microsoft Entra application name will be updated based on the definition in manifest. If you don't want to change the name, ensure the name in Microsoft Entra application manifest is the same with the name defined here."
|
|
183
184
|
},
|
|
184
185
|
"generateClientSecret": {
|
|
185
186
|
"type": "boolean",
|
|
186
|
-
"description": "Whether to generate client secret for the
|
|
187
|
+
"description": "Whether to generate client secret for the Microsoft Entra application. When the value is true, you need to specify the name of environment variable that stores the value of client secret in writeToEnvironmentVariable. For example: `clientSecret: SECRET_MY_AAD_APP_CLIENT_SECRET`.",
|
|
187
188
|
"const": false
|
|
188
189
|
},
|
|
189
190
|
"signInAudience": {
|
|
@@ -200,23 +201,23 @@
|
|
|
200
201
|
"required": ["clientId", "objectId"],
|
|
201
202
|
"properties": {
|
|
202
203
|
"clientId": {
|
|
203
|
-
"description": "Required. The client (application) id of created
|
|
204
|
+
"description": "Required. The client (application) id of created Microsoft Entra application.",
|
|
204
205
|
"$ref": "#/definitions/envVarName"
|
|
205
206
|
},
|
|
206
207
|
"objectId": {
|
|
207
|
-
"description": "Required. The object id of created
|
|
208
|
+
"description": "Required. The object id of created Microsoft Entra application.",
|
|
208
209
|
"$ref": "#/definitions/envVarName"
|
|
209
210
|
},
|
|
210
211
|
"tenantId": {
|
|
211
|
-
"description": "The tenant id of created
|
|
212
|
+
"description": "The tenant id of created Microsoft Entra application.",
|
|
212
213
|
"$ref": "#/definitions/envVarName"
|
|
213
214
|
},
|
|
214
215
|
"authority": {
|
|
215
|
-
"description": "The authority of created
|
|
216
|
+
"description": "The authority of created Microsoft Entra application.",
|
|
216
217
|
"$ref": "#/definitions/envVarName"
|
|
217
218
|
},
|
|
218
219
|
"authorityHost": {
|
|
219
|
-
"description": "The authority host name of created
|
|
220
|
+
"description": "The authority host name of created Microsoft Entra application.",
|
|
220
221
|
"$ref": "#/definitions/envVarName"
|
|
221
222
|
}
|
|
222
223
|
}
|
|
@@ -233,7 +234,7 @@
|
|
|
233
234
|
"aadAppUpdate": {
|
|
234
235
|
"type": "object",
|
|
235
236
|
"additionalProperties": false,
|
|
236
|
-
"description": "Update
|
|
237
|
+
"description": "Update Microsoft Entra application. Refer to https://aka.ms/teamsfx-actions/aadapp-update for more details.",
|
|
237
238
|
"required": ["uses", "with"],
|
|
238
239
|
"properties": {
|
|
239
240
|
"name": {
|
|
@@ -249,7 +250,7 @@
|
|
|
249
250
|
},
|
|
250
251
|
"uses": {
|
|
251
252
|
"type": "string",
|
|
252
|
-
"description": "Update
|
|
253
|
+
"description": "Update Microsoft Entra application based on the given Microsoft Entra application manifest. If the manifest uses AAD_APP_ACCESS_AS_USER_PERMISSION_ID and the environment variable is empty, this action will generate a random id and output it. Refer to https://aka.ms/teamsfx-actions/aadapp-update for more details.",
|
|
253
254
|
"const": "aadApp/update"
|
|
254
255
|
},
|
|
255
256
|
"with": {
|
|
@@ -260,11 +261,11 @@
|
|
|
260
261
|
"properties": {
|
|
261
262
|
"manifestPath": {
|
|
262
263
|
"type": "string",
|
|
263
|
-
"description": "Path of
|
|
264
|
+
"description": "Path of Microsoft Entra application manifest. Environment variables in the manifest will be replaced before applying the manifest to Microsoft Entra application."
|
|
264
265
|
},
|
|
265
266
|
"outputFilePath": {
|
|
266
267
|
"type": "string",
|
|
267
|
-
"description": "Generate the final
|
|
268
|
+
"description": "Generate the final Microsoft Entra application manifest used to update Microsoft Entra application to this path."
|
|
268
269
|
}
|
|
269
270
|
}
|
|
270
271
|
}
|
|
@@ -914,7 +915,7 @@
|
|
|
914
915
|
"botAadAppCreate": {
|
|
915
916
|
"type": "object",
|
|
916
917
|
"additionalProperties": false,
|
|
917
|
-
"description": "Create a new or reuse an existing
|
|
918
|
+
"description": "Create a new or reuse an existing Microsoft Entra application for bot. Refer to https://aka.ms/teamsfx-actions/botaadapp-create for more details.",
|
|
918
919
|
"required": ["uses", "with", "writeToEnvironmentFile"],
|
|
919
920
|
"properties": {
|
|
920
921
|
"name": {
|
|
@@ -930,7 +931,7 @@
|
|
|
930
931
|
},
|
|
931
932
|
"uses": {
|
|
932
933
|
"type": "string",
|
|
933
|
-
"description": "Create a new or reuse an existing
|
|
934
|
+
"description": "Create a new or reuse an existing Microsoft Entra application for bot. Refer to https://aka.ms/teamsfx-actions/botaadapp-create for more details.",
|
|
934
935
|
"const": "botAadApp/create"
|
|
935
936
|
},
|
|
936
937
|
"with": {
|
|
@@ -941,7 +942,7 @@
|
|
|
941
942
|
"properties": {
|
|
942
943
|
"name": {
|
|
943
944
|
"type": "string",
|
|
944
|
-
"description": "The user-facing display name for this
|
|
945
|
+
"description": "The user-facing display name for this Microsoft Entra application"
|
|
945
946
|
}
|
|
946
947
|
}
|
|
947
948
|
},
|
|
@@ -952,11 +953,11 @@
|
|
|
952
953
|
"required": ["botId", "botPassword"],
|
|
953
954
|
"properties": {
|
|
954
955
|
"botId": {
|
|
955
|
-
"description": "Required. Client (application) id of the
|
|
956
|
+
"description": "Required. Client (application) id of the Microsoft Entra application created for bot.",
|
|
956
957
|
"$ref": "#/definitions/envVarName"
|
|
957
958
|
},
|
|
958
959
|
"botPassword": {
|
|
959
|
-
"description": "Required. Client secret of the
|
|
960
|
+
"description": "Required. Client secret of the Microsoft Entra application created for bot.",
|
|
960
961
|
"$ref": "#/definitions/secretEnvVarName"
|
|
961
962
|
}
|
|
962
963
|
}
|
|
@@ -993,7 +994,7 @@
|
|
|
993
994
|
"properties": {
|
|
994
995
|
"botId": {
|
|
995
996
|
"type": "string",
|
|
996
|
-
"description": "the
|
|
997
|
+
"description": "the Microsoft Entra app client id of the bot"
|
|
997
998
|
},
|
|
998
999
|
"name": {
|
|
999
1000
|
"type": "string",
|
|
@@ -1221,10 +1222,7 @@
|
|
|
1221
1222
|
"type": "object",
|
|
1222
1223
|
"description": "Install Teams App Test Tool. This will output environment variables specified by `testToolPath` to current environment's .env file.",
|
|
1223
1224
|
"additionalProperties": false,
|
|
1224
|
-
"required": [
|
|
1225
|
-
"version",
|
|
1226
|
-
"symlinkDir"
|
|
1227
|
-
],
|
|
1225
|
+
"required": ["version", "symlinkDir"],
|
|
1228
1226
|
"properties": {
|
|
1229
1227
|
"version": {
|
|
1230
1228
|
"oneOf": [
|
|
@@ -1436,12 +1434,11 @@
|
|
|
1436
1434
|
},
|
|
1437
1435
|
"workingDirectory": {
|
|
1438
1436
|
"type": "string",
|
|
1439
|
-
"description": "
|
|
1437
|
+
"description": "Current working directory. Defaults to the directory of this file."
|
|
1440
1438
|
},
|
|
1441
1439
|
"shell": {
|
|
1442
1440
|
"type": "string",
|
|
1443
|
-
"
|
|
1444
|
-
"description": "The shell type. Can be omitted. If omitted, it defaults to bash on Linux/MacOS, defaults to pwsh on windows."
|
|
1441
|
+
"description": "Shell command. If not specified, use default shell for current platform. The rule is: 1) use the value of the 'SHELL' environment variable if it is set. Otherwise the shell depends on operation system: 2) on macOS, use '/bin/zsh' if it exists, otherwise use '/bin/bash'; 3) On Windows, use the value of the 'ComSpec' environment variable if it exists, otherwise use 'cmd.exe'; 4) On Linux or other OS, use '/bin/sh' if it extis."
|
|
1445
1442
|
},
|
|
1446
1443
|
"timeout": {
|
|
1447
1444
|
"type": "number",
|
|
@@ -1495,6 +1492,55 @@
|
|
|
1495
1492
|
"type": "string",
|
|
1496
1493
|
"pattern": "^[A-Z][A-Z0-9_]*$",
|
|
1497
1494
|
"maxLength": 256
|
|
1495
|
+
},
|
|
1496
|
+
"apiKeyRegister": {
|
|
1497
|
+
"type": "object",
|
|
1498
|
+
"additionalProperties": false,
|
|
1499
|
+
"description": "Create an API key.",
|
|
1500
|
+
"required": ["uses", "with", "writeToEnvironmentFile"],
|
|
1501
|
+
"properties": {
|
|
1502
|
+
"uses": {
|
|
1503
|
+
"type": "string",
|
|
1504
|
+
"description": "Register API key. Refer to https://aka.ms/teamsfx-actions/apiKey-register for more details.",
|
|
1505
|
+
"const": "apiKey/register"
|
|
1506
|
+
},
|
|
1507
|
+
"with": {
|
|
1508
|
+
"type": "object",
|
|
1509
|
+
"additionalProperties": false,
|
|
1510
|
+
"description": "Parameters for this action",
|
|
1511
|
+
"required": ["name", "appId", "apiSpecPath"],
|
|
1512
|
+
"properties": {
|
|
1513
|
+
"name": {
|
|
1514
|
+
"type": "string",
|
|
1515
|
+
"description": "The name of API key."
|
|
1516
|
+
},
|
|
1517
|
+
"appId": {
|
|
1518
|
+
"type": "string",
|
|
1519
|
+
"description": "The app ID of Teams app."
|
|
1520
|
+
},
|
|
1521
|
+
"clientSecret": {
|
|
1522
|
+
"type": "string",
|
|
1523
|
+
"description": "Client secret of API key. Client secret should follow: 1. Max %d secrets per API key. 2. Use comma to separate secrets. 3. Length of every secret >= 10 and <= 128"
|
|
1524
|
+
},
|
|
1525
|
+
"apiSpecPath": {
|
|
1526
|
+
"type": "string",
|
|
1527
|
+
"description": "The path of API specification file."
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
"writeToEnvironmentFile": {
|
|
1532
|
+
"type": "object",
|
|
1533
|
+
"additionalProperties": false,
|
|
1534
|
+
"description": "Write environment variables to environment file",
|
|
1535
|
+
"required": ["registrationId"],
|
|
1536
|
+
"properties": {
|
|
1537
|
+
"registrationId": {
|
|
1538
|
+
"description": "Required. The registration id of created API key.",
|
|
1539
|
+
"$ref": "#/definitions/envVarName"
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1498
1544
|
}
|
|
1499
1545
|
}
|
|
1500
1546
|
}
|
|
@@ -5,11 +5,11 @@ version: 1.1.0
|
|
|
5
5
|
|
|
6
6
|
provision:
|
|
7
7
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
8
|
-
- uses: aadApp/create # Creates a new
|
|
8
|
+
- uses: aadApp/create # Creates a new Microsoft Entra app to authenticate users if the environment variable that stores clientId is empty
|
|
9
9
|
with:
|
|
10
|
-
name: {{aadAppName}} # Note: when you run aadApp/update, the
|
|
10
|
+
name: {{aadAppName}} # Note: when you run aadApp/update, the Microsoft Entra app name will be updated based on the definition in manifest. If you don't want to change the name, make sure the name in Microsoft Entra manifest is the same with the name defined here.
|
|
11
11
|
generateClientSecret: true # If the value is false, the action will not generate client secret for you
|
|
12
|
-
signInAudience: "AzureADMyOrg" # Authenticate users with a Microsoft work or school account in your organization's
|
|
12
|
+
signInAudience: "AzureADMyOrg" # Authenticate users with a Microsoft work or school account in your organization's Microsoft Entra tenant (for example, single tenant).
|
|
13
13
|
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
14
14
|
clientId: AAD_APP_CLIENT_ID
|
|
15
15
|
clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
|
|
@@ -25,7 +25,7 @@ provision:
|
|
|
25
25
|
# Write the information of created resources into environment file for the specified environment variable(s).
|
|
26
26
|
teamsAppId: TEAMS_APP_ID
|
|
27
27
|
{{#if activePlugins.fx-resource-bot}}
|
|
28
|
-
- uses: botAadApp/create # Creates a new
|
|
28
|
+
- uses: botAadApp/create # Creates a new Microsoft Entra app for Bot Registration.
|
|
29
29
|
with:
|
|
30
30
|
name: {{appName}}
|
|
31
31
|
writeToEnvironmentFile:
|
|
@@ -78,9 +78,9 @@ provision:
|
|
|
78
78
|
run: echo "::set-teamsfx-env {{placeholderMappings.botDomain}}=$\{{BOT_DOMAIN}}"
|
|
79
79
|
{{/if}}
|
|
80
80
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
81
|
-
- uses: aadApp/update # Apply the
|
|
81
|
+
- uses: aadApp/update # Apply the Microsoft Entra manifest to an existing Microsoft Entra app. Will use the object id in manifest file to determine which Microsoft Entra app to update.
|
|
82
82
|
with:
|
|
83
|
-
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to
|
|
83
|
+
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to Microsoft Entra app
|
|
84
84
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
85
85
|
{{/if}}
|
|
86
86
|
- uses: teamsApp/validateManifest # Validate using manifest schema
|
|
@@ -9,11 +9,11 @@ environmentFolderPath: ./ {{~environmentFolder}}
|
|
|
9
9
|
|
|
10
10
|
provision:
|
|
11
11
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
12
|
-
- uses: aadApp/create # Creates a new
|
|
12
|
+
- uses: aadApp/create # Creates a new Microsoft Entra app to authenticate users if the environment variable that stores clientId is empty
|
|
13
13
|
with:
|
|
14
|
-
name: {{aadAppName}} # Note: when you run aadApp/update, the
|
|
14
|
+
name: {{aadAppName}} # Note: when you run aadApp/update, the Microsoft Entra app name will be updated based on the definition in manifest. If you don't want to change the name, make sure the name in Microsoft Entra manifest is the same with the name defined here.
|
|
15
15
|
generateClientSecret: true # If the value is false, the action will not generate client secret for you
|
|
16
|
-
signInAudience: "AzureADMyOrg" # Authenticate users with a Microsoft work or school account in your organization's
|
|
16
|
+
signInAudience: "AzureADMyOrg" # Authenticate users with a Microsoft work or school account in your organization's Microsoft Entra tenant (for example, single tenant).
|
|
17
17
|
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
18
18
|
clientId: AAD_APP_CLIENT_ID
|
|
19
19
|
clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
|
|
@@ -29,7 +29,7 @@ provision:
|
|
|
29
29
|
# Write the information of created resources into environment file for the specified environment variable(s).
|
|
30
30
|
teamsAppId: TEAMS_APP_ID
|
|
31
31
|
{{#if activePlugins.fx-resource-bot}}
|
|
32
|
-
- uses: botAadApp/create # Creates a new
|
|
32
|
+
- uses: botAadApp/create # Creates a new Microsoft Entra app for Bot Registration.
|
|
33
33
|
with:
|
|
34
34
|
name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
|
|
35
35
|
writeToEnvironmentFile:
|
|
@@ -51,9 +51,9 @@ provision:
|
|
|
51
51
|
run: echo "::set-teamsfx-env {{placeholderMappings.[state.fx-resource-frontend-hosting.indexPath]}}=/" # Used in appPackage/manifest.json file.
|
|
52
52
|
{{/if}}
|
|
53
53
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
54
|
-
- uses: aadApp/update # Apply the
|
|
54
|
+
- uses: aadApp/update # Apply the Microsoft Entra manifest to an existing Microsoft Entra app. Will use the object id in manifest file to determine which Microsoft Entra app to update.
|
|
55
55
|
with:
|
|
56
|
-
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to
|
|
56
|
+
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to Microsoft Entra app
|
|
57
57
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
58
58
|
{{/if}}
|
|
59
59
|
- uses: teamsApp/validateManifest # Validate using manifest schema
|
|
@@ -7,19 +7,19 @@ version: 1.0.0
|
|
|
7
7
|
provision:
|
|
8
8
|
{{#registerApp}}
|
|
9
9
|
{{#if aad}}
|
|
10
|
-
# Creates a new
|
|
10
|
+
# Creates a new Microsoft Entra app to authenticate users if
|
|
11
11
|
# the environment variable that stores clientId is empty
|
|
12
12
|
- uses: aadApp/create
|
|
13
13
|
with:
|
|
14
|
-
# Note: when you run aadApp/update, the
|
|
14
|
+
# Note: when you run aadApp/update, the Microsoft Entra app name will be updated
|
|
15
15
|
# based on the definition in manifest. If you don't want to change the
|
|
16
|
-
# name, make sure the name in
|
|
16
|
+
# name, make sure the name in Microsoft Entra manifest is the same with the name
|
|
17
17
|
# defined here.
|
|
18
18
|
name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-aad
|
|
19
19
|
# If the value is false, the action will not generate client secret for you
|
|
20
20
|
generateClientSecret: true
|
|
21
21
|
# Authenticate users with a Microsoft work or school account in your
|
|
22
|
-
# organization's
|
|
22
|
+
# organization's Microsoft Entra tenant (for example, single tenant).
|
|
23
23
|
signInAudience: "AzureADMyOrg"
|
|
24
24
|
# Write the information of created resources into environment file for the
|
|
25
25
|
# specified environment variable(s).
|
|
@@ -48,15 +48,15 @@ provision:
|
|
|
48
48
|
|
|
49
49
|
{{/registerApp}}
|
|
50
50
|
{{#bot}}
|
|
51
|
-
# Create or reuse an existing
|
|
51
|
+
# Create or reuse an existing Microsoft Entra application for bot.
|
|
52
52
|
- uses: botAadApp/create
|
|
53
53
|
with:
|
|
54
|
-
# The
|
|
54
|
+
# The Microsoft Entra application's display name
|
|
55
55
|
name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-bot
|
|
56
56
|
writeToEnvironmentFile:
|
|
57
|
-
# The
|
|
57
|
+
# The Microsoft Entra application's client id created for bot.
|
|
58
58
|
botId: BOT_ID
|
|
59
|
-
# The
|
|
59
|
+
# The Microsoft Entra application's client secret created for bot.
|
|
60
60
|
botPassword: SECRET_BOT_PASSWORD
|
|
61
61
|
|
|
62
62
|
# Create or update the bot registration on dev.botframework.com
|
|
@@ -84,12 +84,12 @@ provision:
|
|
|
84
84
|
|
|
85
85
|
{{/tab}}
|
|
86
86
|
{{#if aad}}
|
|
87
|
-
# Apply the
|
|
88
|
-
# manifest file to determine which
|
|
87
|
+
# Apply the Microsoft Entra manifest to an existing Microsoft Entra app. Will use the object id in
|
|
88
|
+
# manifest file to determine which Microsoft Entra app to update.
|
|
89
89
|
- uses: aadApp/update
|
|
90
90
|
with:
|
|
91
91
|
# Relative path to this file. Environment variables in manifest will
|
|
92
|
-
# be replaced before apply to
|
|
92
|
+
# be replaced before apply to Microsoft Entra app
|
|
93
93
|
manifestPath: ./aad.manifest.json
|
|
94
94
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
95
95
|
|
|
@@ -10,19 +10,19 @@ environmentFolderPath: ./ {{~environmentFolder}}
|
|
|
10
10
|
# Triggered when 'teamsfx provision' is executed
|
|
11
11
|
provision:
|
|
12
12
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
13
|
-
# Creates a new
|
|
13
|
+
# Creates a new Microsoft Entra app to authenticate users if
|
|
14
14
|
# the environment variable that stores clientId is empty
|
|
15
15
|
- uses: aadApp/create
|
|
16
16
|
with:
|
|
17
|
-
# Note: when you run aadApp/update, the
|
|
17
|
+
# Note: when you run aadApp/update, the Microsoft Entra app name will be updated
|
|
18
18
|
# based on the definition in manifest. If you don't want to change the
|
|
19
|
-
# name, make sure the name in
|
|
19
|
+
# name, make sure the name in Microsoft Entra manifest is the same with the name
|
|
20
20
|
# defined here.
|
|
21
21
|
name: {{aadAppName}}
|
|
22
22
|
# If the value is false, the action will not generate client secret for you
|
|
23
23
|
generateClientSecret: true
|
|
24
24
|
# Authenticate users with a Microsoft work or school account in your
|
|
25
|
-
# organization's
|
|
25
|
+
# organization's Microsoft Entra tenant (for example, single tenant).
|
|
26
26
|
signInAudience: "AzureADMyOrg"
|
|
27
27
|
# Write the information of created resources into environment file for the
|
|
28
28
|
# specified environment variable(s).
|
|
@@ -46,15 +46,15 @@ provision:
|
|
|
46
46
|
writeToEnvironmentFile:
|
|
47
47
|
teamsAppId: TEAMS_APP_ID
|
|
48
48
|
{{#if activePlugins.fx-resource-bot}}
|
|
49
|
-
# Create or reuse an existing
|
|
49
|
+
# Create or reuse an existing Microsoft Entra application for bot.
|
|
50
50
|
- uses: botAadApp/create
|
|
51
51
|
with:
|
|
52
|
-
# The
|
|
52
|
+
# The Microsoft Entra application's display name
|
|
53
53
|
name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
|
|
54
54
|
writeToEnvironmentFile:
|
|
55
|
-
# The
|
|
55
|
+
# The Microsoft Entra application's client id created for bot.
|
|
56
56
|
botId: BOT_ID
|
|
57
|
-
# The
|
|
57
|
+
# The Microsoft Entra application's client secret created for bot.
|
|
58
58
|
botPassword: SECRET_BOT_PASSWORD
|
|
59
59
|
{{/if}}
|
|
60
60
|
- uses: arm/deploy # Deploy given ARM templates parallelly.
|
|
@@ -89,12 +89,12 @@ provision:
|
|
|
89
89
|
errorPage: error.html
|
|
90
90
|
{{/if}}
|
|
91
91
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
92
|
-
# Apply the
|
|
93
|
-
# manifest file to determine which
|
|
92
|
+
# Apply the Microsoft Entra manifest to an existing Microsoft Entra app. Will use the object id in
|
|
93
|
+
# manifest file to determine which Microsoft Entra app to update.
|
|
94
94
|
- uses: aadApp/update
|
|
95
95
|
with:
|
|
96
96
|
# Relative path to this file. Environment variables in manifest will
|
|
97
|
-
# be replaced before apply to
|
|
97
|
+
# be replaced before apply to Microsoft Entra app
|
|
98
98
|
manifestPath: ./aad.manifest.json
|
|
99
99
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
100
100
|
{{/if}}
|
|
@@ -163,7 +163,7 @@ deploy:
|
|
|
163
163
|
- uses: azureStorage/deploy
|
|
164
164
|
with:
|
|
165
165
|
workingDirectory: tabs
|
|
166
|
-
# Deploy base folder. This folder includes manifest files for
|
|
166
|
+
# Deploy base folder. This folder includes manifest files for Microsoft Entra app and Teams app that should be ignored using the ignoreFile.
|
|
167
167
|
artifactFolder: build
|
|
168
168
|
# The resource id of the cloud resource to be deployed to.
|
|
169
169
|
# This key will be generated by arm/deploy action automatically.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,61 +1,65 @@
|
|
|
1
1
|
@page "/bot-auth-end.html"
|
|
2
2
|
|
|
3
3
|
<html>
|
|
4
|
+
|
|
4
5
|
<head>
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
<title>Login End Page</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
7
8
|
</head>
|
|
8
9
|
|
|
9
10
|
<body>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// Unexpected condition: hash does not contain error or access_token parameter
|
|
29
|
-
handleAuthError("UnexpectedFailure", hashParams);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
// Parse hash parameters into key-value pairs
|
|
34
|
-
function getHashParameters() {
|
|
35
|
-
let hashParams = {};
|
|
36
|
-
location.hash
|
|
37
|
-
.substr(1)
|
|
38
|
-
.split("&")
|
|
39
|
-
.forEach(function (item) {
|
|
40
|
-
let s = item.split("="),
|
|
41
|
-
k = s[0],
|
|
42
|
-
v = s[1] && decodeURIComponent(s[1]);
|
|
43
|
-
hashParams[k] = v;
|
|
44
|
-
});
|
|
45
|
-
return hashParams;
|
|
46
|
-
}
|
|
47
|
-
// Show error information
|
|
48
|
-
function handleAuthError(errorType, errorMessage) {
|
|
49
|
-
const err = JSON.stringify({
|
|
50
|
-
error: errorType,
|
|
51
|
-
message: JSON.stringify(errorMessage),
|
|
52
|
-
});
|
|
53
|
-
let para = document.createElement("p");
|
|
54
|
-
let node = document.createTextNode(err);
|
|
55
|
-
para.appendChild(node);
|
|
56
|
-
let element = document.getElementById("divError");
|
|
57
|
-
element.appendChild(para);
|
|
11
|
+
<script src="https://res.cdn.office.net/teams-js/2.17.0/js/MicrosoftTeams.min.js"
|
|
12
|
+
integrity="sha384-xp55t/129OsN192JZYLP0rGhzjCF9aYtjY0LVtXvolkDrBe4Jchylp56NrUYJ4S2"
|
|
13
|
+
crossorigin="anonymous"></script>
|
|
14
|
+
<div id="divError"></div>
|
|
15
|
+
<script type="text/javascript">
|
|
16
|
+
microsoftTeams.app.initialize().then(() => {
|
|
17
|
+
let hashParams = getHashParameters();
|
|
18
|
+
if (hashParams["error"]) {
|
|
19
|
+
// Authentication failed
|
|
20
|
+
handleAuthError(hashParams["error"], hashParams);
|
|
21
|
+
} else if (hashParams["code"]) {
|
|
22
|
+
// Get the stored state parameter and compare with incoming state
|
|
23
|
+
let expectedState = localStorage.getItem("state");
|
|
24
|
+
if (expectedState !== hashParams["state"]) {
|
|
25
|
+
// State does not match, report error
|
|
26
|
+
handleAuthError("StateDoesNotMatch", hashParams);
|
|
27
|
+
} else {
|
|
28
|
+
microsoftTeams.authentication.notifySuccess();
|
|
58
29
|
}
|
|
59
|
-
|
|
30
|
+
} else {
|
|
31
|
+
// Unexpected condition: hash does not contain error or access_token parameter
|
|
32
|
+
handleAuthError("UnexpectedFailure", hashParams);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Parse hash parameters into key-value pairs
|
|
37
|
+
function getHashParameters() {
|
|
38
|
+
let hashParams = {};
|
|
39
|
+
location.hash
|
|
40
|
+
.substr(1)
|
|
41
|
+
.split("&")
|
|
42
|
+
.forEach(function (item) {
|
|
43
|
+
let s = item.split("="),
|
|
44
|
+
k = s[0],
|
|
45
|
+
v = s[1] && decodeURIComponent(s[1]);
|
|
46
|
+
hashParams[k] = v;
|
|
47
|
+
});
|
|
48
|
+
return hashParams;
|
|
49
|
+
}
|
|
50
|
+
// Show error information
|
|
51
|
+
function handleAuthError(errorType, errorMessage) {
|
|
52
|
+
const err = JSON.stringify({
|
|
53
|
+
error: errorType,
|
|
54
|
+
message: JSON.stringify(errorMessage),
|
|
55
|
+
});
|
|
56
|
+
let para = document.createElement("p");
|
|
57
|
+
let node = document.createTextNode(err);
|
|
58
|
+
para.appendChild(node);
|
|
59
|
+
let element = document.getElementById("divError");
|
|
60
|
+
element.appendChild(para);
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
60
63
|
</body>
|
|
64
|
+
|
|
61
65
|
</html>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Enable Single Sign-on for Teams Applications
|
|
2
2
|
-------------------------
|
|
3
3
|
|
|
4
|
-
On click of Visual Studio menu Project -> Teams Toolkit -> Add Authentication Code, couple of files for Single Sign-on are generated in "TeamsFx-Auth" folder, including a manifest template file for
|
|
4
|
+
On click of Visual Studio menu Project -> Teams Toolkit -> Add Authentication Code, couple of files for Single Sign-on are generated in "TeamsFx-Auth" folder, including a manifest template file for Microsoft Entra application and authentication redirect pages.
|
|
5
5
|
|
|
6
6
|
Teams Toolkit helps you generate the authentication files, then you will need to link the files to your Teams application by updating authentication configurations to make sure the Single Sign-on works for your application. Please be noted that for different Teams application type like Tab or Bot, the detailed steps are slightly different.
|
|
7
7
|
|
|
8
8
|
Basically you will need take care these configurations:
|
|
9
9
|
|
|
10
|
-
* In the
|
|
10
|
+
* In the Microsoft Entra manifest file, you need to specify URIs such as the URI to identify the Microsoft Entra authentication app and the redirect URI for returning token.
|
|
11
11
|
* In the Teams manifest file, add the SSO application to link it with Teams application.
|
|
12
12
|
* Add SSO application information in Teams Toolkit configuration files in order to make sure the authentication app can be registered on backend service and started by Teams Toolkit when you debugging or previewing Teams application.
|
|
13
13
|
|