@microsoft/teamsfx-core 2.0.0-alpha.a17e3a89d.0 → 2.0.0-alpha.e6bcbdb22.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/local/constants.d.ts +1 -2
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +1 -2
- package/build/common/local/constants.js.map +1 -1
- package/build/common/m365/constants.d.ts +6 -0
- package/build/common/m365/constants.d.ts.map +1 -0
- package/build/common/m365/constants.js +12 -0
- package/build/common/m365/constants.js.map +1 -0
- package/build/common/m365/launchHelper.d.ts +12 -0
- package/build/common/m365/launchHelper.d.ts.map +1 -0
- package/build/common/m365/launchHelper.js +109 -0
- package/build/common/m365/launchHelper.js.map +1 -0
- package/build/component/constant/commonConstant.d.ts +1 -0
- package/build/component/constant/commonConstant.d.ts.map +1 -1
- package/build/component/constant/commonConstant.js +1 -0
- package/build/component/constant/commonConstant.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +18 -0
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +11 -1
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/unhandledError.js +1 -1
- package/build/component/driver/aad/error/unhandledError.js.map +1 -1
- package/build/component/driver/aad/interface/createAadAppArgs.d.ts +2 -0
- package/build/component/driver/aad/interface/createAadAppArgs.d.ts.map +1 -1
- package/build/component/driver/aad/interface/signInAudience.d.ts +7 -0
- package/build/component/driver/aad/interface/signInAudience.d.ts.map +1 -0
- package/build/component/driver/aad/interface/signInAudience.js +13 -0
- package/build/component/driver/aad/interface/signInAudience.js.map +1 -0
- package/build/component/driver/aad/utility/aadAppClient.d.ts +2 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +3 -2
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/botAadApp/error/unhandledError.js +1 -1
- package/build/component/driver/botAadApp/error/unhandledError.js.map +1 -1
- package/build/component/driver/botFramework/error/unhandledError.js +1 -1
- package/build/component/driver/botFramework/error/unhandledError.js.map +1 -1
- package/build/component/driver/file/error/unhandledError.js +1 -1
- package/build/component/driver/file/error/unhandledError.js.map +1 -1
- package/build/component/driver/interface/commonArgs.d.ts +2 -1
- package/build/component/driver/interface/commonArgs.d.ts.map +1 -1
- package/build/component/driver/m365/error/unhandledError.js +1 -1
- package/build/component/driver/m365/error/unhandledError.js.map +1 -1
- package/build/component/driver/middleware/updateProgress.d.ts +6 -0
- package/build/component/driver/middleware/updateProgress.d.ts.map +1 -0
- package/build/component/driver/middleware/updateProgress.js +15 -0
- package/build/component/driver/middleware/updateProgress.js.map +1 -0
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +5 -12
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +6 -14
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +9 -24
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +6 -5
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/middleware/envMW.d.ts +8 -2
- package/build/component/middleware/envMW.d.ts.map +1 -1
- package/build/component/middleware/envMW.js +13 -7
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +1 -0
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/appManifest/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudioClient.js +16 -1
- package/build/component/resource/appManifest/appStudioClient.js.map +1 -1
- package/build/component/resource/appManifest/errors.d.ts.map +1 -1
- package/build/component/resource/appManifest/errors.js +1 -1
- package/build/component/resource/appManifest/errors.js.map +1 -1
- package/build/component/resource/botService/errors.d.ts +0 -6
- package/build/component/resource/botService/errors.d.ts.map +1 -1
- package/build/component/resource/botService/errors.js +8 -15
- package/build/component/resource/botService/errors.js.map +1 -1
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +1 -0
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +1 -0
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +40 -16
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +3 -7
- package/build/core/collaborator.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +35 -31
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +2 -2
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/question.d.ts +4 -2
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +48 -3
- package/build/core/question.js.map +1 -1
- package/build/error/common.js +3 -3
- package/build/error/common.js.map +1 -1
- package/package.json +4 -4
- package/resource/package.nls.json +179 -178
- package/resource/package.nls.zh-cn.json +200 -329
- package/resource/package.nls.zh-tw.json +200 -329
- package/templates/core/v3Migration/csharp.app.local.yml +18 -18
- package/templates/core/v3Migration/csharp.app.yml +18 -18
- package/templates/core/v3Migration/js.ts.app.local.yml +34 -28
- package/templates/core/v3Migration/js.ts.app.yml +27 -25
- package/templates/core/v3Migration/spfx.app.yml +8 -8
- 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
|
@@ -2,32 +2,32 @@ version: 1.0.0
|
|
|
2
2
|
|
|
3
3
|
registerApp:
|
|
4
4
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
5
|
-
- uses: aadApp/create # Creates a new AAD app to authenticate users if
|
|
5
|
+
- uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
|
|
6
6
|
with:
|
|
7
|
-
name: {{aadAppName}} # Note: when you run
|
|
7
|
+
name: {{aadAppName}} # Note: when you run aadApp/update, the AAD 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 AAD manifest is the same with the name defined here.
|
|
8
8
|
generateClientSecret: true # If the value is false, the action will not generate client secret for you
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
10
|
+
clientId: AAD_APP_CLIENT_ID
|
|
11
|
+
clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
|
|
12
|
+
objectId: AAD_APP_OBJECT_ID
|
|
13
|
+
tenantId: AAD_APP_TENANT_ID
|
|
14
|
+
authority: AAD_APP_OAUTH_AUTHORITY
|
|
15
|
+
authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
|
|
16
16
|
{{/if}}
|
|
17
17
|
- uses: teamsApp/create # Creates a Teams app
|
|
18
18
|
with:
|
|
19
19
|
name: {{teamsAppName}} # Teams app name
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
writeToEnvironmentFile:
|
|
21
|
+
teamsAppId: TEAMS_APP_ID
|
|
22
22
|
|
|
23
23
|
{{#if activePlugins.fx-resource-bot}}
|
|
24
24
|
provision:
|
|
25
25
|
- uses: botAadApp/create # Creates a new AAD app for Bot Registration.
|
|
26
26
|
with:
|
|
27
27
|
name: {{appName}}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
writeToEnvironmentFile:
|
|
29
|
+
botId: BOT_ID
|
|
30
|
+
botPassword: SECRET_BOT_PASSWORD
|
|
31
31
|
- uses: botFramework/create # Create or update the bot registration on dev.botframework.com
|
|
32
32
|
with:
|
|
33
33
|
botId: $\{{BOT_ID}}
|
|
@@ -86,8 +86,8 @@ configureApp:
|
|
|
86
86
|
with:
|
|
87
87
|
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
|
|
88
88
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
# Output: following environment variable will be persisted in current environment's .env file.
|
|
90
|
+
# AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
|
|
91
91
|
{{/if}}
|
|
92
92
|
- uses: teamsApp/validateManifest # Validate using manifest schema
|
|
93
93
|
with:
|
|
@@ -100,5 +100,5 @@ configureApp:
|
|
|
100
100
|
- uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
|
|
101
101
|
with:
|
|
102
102
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
writeToEnvironmentFile:
|
|
104
|
+
teamsAppId: TEAMS_APP_ID
|
|
@@ -6,30 +6,30 @@ environmentFolderPath: ./ {{~environmentFolder}}
|
|
|
6
6
|
|
|
7
7
|
provision:
|
|
8
8
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
9
|
-
- uses: aadApp/create # Creates a new AAD app to authenticate users if
|
|
9
|
+
- uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
|
|
10
10
|
with:
|
|
11
|
-
name: {{aadAppName}} # Note: when you run
|
|
11
|
+
name: {{aadAppName}} # Note: when you run aadApp/update, the AAD 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 AAD manifest is the same with the name defined here.
|
|
12
12
|
generateClientSecret: true # If the value is false, the action will not generate client secret for you
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
14
|
+
clientId: AAD_APP_CLIENT_ID
|
|
15
|
+
clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
|
|
16
|
+
objectId: AAD_APP_OBJECT_ID
|
|
17
|
+
tenantId: AAD_APP_TENANT_ID
|
|
18
|
+
authority: AAD_APP_OAUTH_AUTHORITY
|
|
19
|
+
authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
|
|
20
20
|
{{/if}}
|
|
21
21
|
- uses: teamsApp/create # Creates a Teams app
|
|
22
22
|
with:
|
|
23
23
|
name: {{teamsAppName}} # Teams app name
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
writeToEnvironmentFile:
|
|
25
|
+
teamsAppId: TEAMS_APP_ID
|
|
26
26
|
{{#if activePlugins.fx-resource-bot}}
|
|
27
27
|
- uses: botAadApp/create # Creates a new AAD app for Bot Registration.
|
|
28
28
|
with:
|
|
29
29
|
name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
writeToEnvironmentFile:
|
|
31
|
+
botId: BOT_ID
|
|
32
|
+
botPassword: SECRET_BOT_PASSWORD
|
|
33
33
|
{{/if}}
|
|
34
34
|
- uses: arm/deploy # Deploy given ARM templates parallelly.
|
|
35
35
|
with:
|
|
@@ -51,8 +51,8 @@ provision:
|
|
|
51
51
|
with:
|
|
52
52
|
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
|
|
53
53
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
# Output: following environment variable will be persisted in current environment's .env file.
|
|
55
|
+
# AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
|
|
56
56
|
{{/if}}
|
|
57
57
|
- uses: teamsApp/validateManifest # Validate using manifest schema
|
|
58
58
|
with:
|
|
@@ -65,8 +65,8 @@ provision:
|
|
|
65
65
|
- uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
|
|
66
66
|
with:
|
|
67
67
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
writeToEnvironmentFile:
|
|
69
|
+
teamsAppId: TEAMS_APP_ID
|
|
70
70
|
|
|
71
71
|
deploy:
|
|
72
72
|
- uses: cli/runDotnetCommand
|
|
@@ -4,25 +4,25 @@ version: 1.0.0
|
|
|
4
4
|
provision:
|
|
5
5
|
{{#registerApp}}
|
|
6
6
|
{{#if aad}}
|
|
7
|
-
- uses: aadApp/create # Creates a new AAD app to authenticate users if
|
|
7
|
+
- uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
|
|
8
8
|
with:
|
|
9
|
-
name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-aad # Note: when you run
|
|
9
|
+
name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-aad # Note: when you run aadApp/update, the AAD 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 AAD manifest is the same with the name defined here.
|
|
10
10
|
generateClientSecret: true # If the value is false, the action will not generate client secret for you
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
12
|
+
clientId: AAD_APP_CLIENT_ID
|
|
13
|
+
clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
|
|
14
|
+
objectId: AAD_APP_OBJECT_ID
|
|
15
|
+
tenantId: AAD_APP_TENANT_ID
|
|
16
|
+
authority: AAD_APP_OAUTH_AUTHORITY
|
|
17
|
+
authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
|
|
18
18
|
|
|
19
19
|
{{/if}}
|
|
20
20
|
{{#if teamsApp}}
|
|
21
21
|
- uses: teamsApp/create # Creates a Teams app
|
|
22
22
|
with:
|
|
23
23
|
name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}} # Teams app name
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
writeToEnvironmentFile:
|
|
25
|
+
teamsAppId: TEAMS_APP_ID
|
|
26
26
|
{{/if}}
|
|
27
27
|
|
|
28
28
|
{{/registerApp}}
|
|
@@ -30,9 +30,9 @@ provision:
|
|
|
30
30
|
- uses: botAadApp/create # Creates a new AAD app for bot if BOT_ID environment variable is empty
|
|
31
31
|
with:
|
|
32
32
|
name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-bot
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
writeToEnvironmentFile:
|
|
34
|
+
botId: BOT_ID
|
|
35
|
+
botPassword: SECRET_BOT_PASSWORD
|
|
36
36
|
|
|
37
37
|
- uses: botFramework/create # Create or update the bot registration on dev.botframework.com
|
|
38
38
|
with:
|
|
@@ -68,8 +68,8 @@ provision:
|
|
|
68
68
|
with:
|
|
69
69
|
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
|
|
70
70
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
# Output: following environment variable will be persisted in current environment's .env file.
|
|
72
|
+
# AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
|
|
73
73
|
|
|
74
74
|
{{/if}}
|
|
75
75
|
{{#teamsApp}}
|
|
@@ -77,8 +77,8 @@ provision:
|
|
|
77
77
|
- uses: teamsApp/update # # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
|
|
78
78
|
with:
|
|
79
79
|
appPackagePath: {{appPackagePath}} # Relative path to this file. This is the path for built zip file.
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
writeToEnvironmentFile:
|
|
81
|
+
teamsAppId: TEAMS_APP_ID
|
|
82
82
|
{{else}}
|
|
83
83
|
- uses: teamsApp/validateManifest # Validate using manifest schema
|
|
84
84
|
with:
|
|
@@ -93,8 +93,8 @@ provision:
|
|
|
93
93
|
- uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
|
|
94
94
|
with:
|
|
95
95
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
writeToEnvironmentFile:
|
|
97
|
+
teamsAppId: TEAMS_APP_ID
|
|
98
98
|
{{/if}}
|
|
99
99
|
|
|
100
100
|
{{/teamsApp}}
|
|
@@ -102,9 +102,9 @@ provision:
|
|
|
102
102
|
- uses: m365Title/acquire # Upload your app to Outlook and the Microsoft 365 app
|
|
103
103
|
with:
|
|
104
104
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to the built app package.
|
|
105
|
-
#
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
106
|
+
titleId: M365_TITLE_ID
|
|
107
|
+
appId: M365_APP_ID
|
|
108
108
|
|
|
109
109
|
{{/if}}
|
|
110
110
|
{{/configureApp}}
|
|
@@ -124,11 +124,17 @@ deploy:
|
|
|
124
124
|
{{#dotnet}}
|
|
125
125
|
dotnet: true
|
|
126
126
|
{{/dotnet}}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
writeToEnvironmentFile: # Write the information of installed dependencies into environment file for the specified environment variable(s).
|
|
128
|
+
{{#devCert}}
|
|
129
|
+
sslCertFile: SSL_CRT_FILE
|
|
130
|
+
sslKeyFile: SSL_KEY_FILE
|
|
131
|
+
{{/devCert}}
|
|
132
|
+
{{#func}}
|
|
133
|
+
funcPath: FUNC_PATH
|
|
134
|
+
{{/func}}
|
|
135
|
+
{{#dotnet}}
|
|
136
|
+
dotnetPath: DOTNET_PATH
|
|
137
|
+
{{/dotnet}}
|
|
132
138
|
|
|
133
139
|
{{/tools}}
|
|
134
140
|
{{#dotnetCommand}}
|
|
@@ -6,30 +6,30 @@ environmentFolderPath: ./ {{~environmentFolder}}
|
|
|
6
6
|
|
|
7
7
|
provision:
|
|
8
8
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
9
|
-
- uses: aadApp/create # Creates a new AAD app to authenticate users if
|
|
9
|
+
- uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
|
|
10
10
|
with:
|
|
11
|
-
name: {{aadAppName}} # Note: when you run
|
|
11
|
+
name: {{aadAppName}} # Note: when you run aadApp/update, the AAD 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 AAD manifest is the same with the name defined here.
|
|
12
12
|
generateClientSecret: true # If the value is false, the action will not generate client secret for you
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
14
|
+
clientId: AAD_APP_CLIENT_ID
|
|
15
|
+
clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
|
|
16
|
+
objectId: AAD_APP_OBJECT_ID
|
|
17
|
+
tenantId: AAD_APP_TENANT_ID
|
|
18
|
+
authority: AAD_APP_OAUTH_AUTHORITY
|
|
19
|
+
authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
|
|
20
20
|
{{/if}}
|
|
21
21
|
- uses: teamsApp/create # Creates a Teams app
|
|
22
22
|
with:
|
|
23
23
|
name: {{teamsAppName}} # Teams app name
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
writeToEnvironmentFile:
|
|
25
|
+
teamsAppId: TEAMS_APP_ID
|
|
26
26
|
{{#if activePlugins.fx-resource-bot}}
|
|
27
27
|
- uses: botAadApp/create # Creates a new AAD app for Bot Registration.
|
|
28
28
|
with:
|
|
29
29
|
name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
writeToEnvironmentFile:
|
|
31
|
+
botId: BOT_ID
|
|
32
|
+
botPassword: SECRET_BOT_PASSWORD
|
|
33
33
|
{{/if}}
|
|
34
34
|
- uses: arm/deploy # Deploy given ARM templates parallelly.
|
|
35
35
|
with:
|
|
@@ -54,8 +54,8 @@ provision:
|
|
|
54
54
|
with:
|
|
55
55
|
manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
|
|
56
56
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
# Output: following environment variable will be persisted in current environment's .env file.
|
|
58
|
+
# AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
|
|
59
59
|
{{/if}}
|
|
60
60
|
- uses: teamsApp/validateManifest # Validate using manifest schema
|
|
61
61
|
with:
|
|
@@ -68,15 +68,15 @@ provision:
|
|
|
68
68
|
- uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
|
|
69
69
|
with:
|
|
70
70
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
writeToEnvironmentFile:
|
|
72
|
+
teamsAppId: TEAMS_APP_ID
|
|
73
73
|
{{#if isM365}}
|
|
74
74
|
- uses: m365Title/acquire # Upload your app to Outlook and the Microsoft 365 app
|
|
75
75
|
with:
|
|
76
76
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to the built app package.
|
|
77
|
-
#
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
|
|
78
|
+
titleId: M365_TITLE_ID
|
|
79
|
+
appId: M365_APP_ID
|
|
80
80
|
{{/if}}
|
|
81
81
|
|
|
82
82
|
deploy:
|
|
@@ -152,6 +152,8 @@ deploy:
|
|
|
152
152
|
- uses: prerequisite/install # Install dependencies
|
|
153
153
|
with:
|
|
154
154
|
dotnet: true
|
|
155
|
+
writeToEnvironmentFile: # Write the information of installed dependencies into environment file for the specified environment variable(s).
|
|
156
|
+
dotnetPath: DOTNET_PATH
|
|
155
157
|
- uses: cli/runNpmCommand
|
|
156
158
|
name: install api dependencies
|
|
157
159
|
with:
|
|
@@ -189,10 +191,10 @@ publish:
|
|
|
189
191
|
- uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
|
|
190
192
|
with:
|
|
191
193
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
+
writeToEnvironmentFile:
|
|
195
|
+
teamsAppId: TEAMS_APP_ID
|
|
194
196
|
- uses: teamsApp/publishAppPackage # Publish the app to Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) for review and approval
|
|
195
197
|
with:
|
|
196
198
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
writeToEnvironmentFile:
|
|
200
|
+
publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
|
|
@@ -6,8 +6,8 @@ provision:
|
|
|
6
6
|
- uses: teamsApp/create # Creates a Teams app
|
|
7
7
|
with:
|
|
8
8
|
name: {{teamsAppName}} # Teams app name
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
writeToEnvironmentFile:
|
|
10
|
+
teamsAppId: TEAMS_APP_ID
|
|
11
11
|
- uses: teamsApp/validateManifest # Validate using manifest schema
|
|
12
12
|
with:
|
|
13
13
|
manifestPath: ./appPackage/manifest.json # Path to manifest template
|
|
@@ -19,8 +19,8 @@ provision:
|
|
|
19
19
|
- uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
|
|
20
20
|
with:
|
|
21
21
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
writeToEnvironmentFile:
|
|
23
|
+
teamsAppId: TEAMS_APP_ID
|
|
24
24
|
|
|
25
25
|
deploy:
|
|
26
26
|
- uses: cli/runNpmCommand
|
|
@@ -56,10 +56,10 @@ publish:
|
|
|
56
56
|
- uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
|
|
57
57
|
with:
|
|
58
58
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
writeToEnvironmentFile:
|
|
60
|
+
teamsAppId: TEAMS_APP_ID
|
|
61
61
|
- uses: teamsApp/publishAppPackage # Publish the app to Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) for review and approval
|
|
62
62
|
with:
|
|
63
63
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
writeToEnvironmentFile:
|
|
65
|
+
publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|