@microsoft/teamsfx-core 3.0.5-alpha.2df64786b.0 → 3.0.5-alpha.4ac681117.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-core",
3
- "version": "3.0.5-alpha.2df64786b.0",
3
+ "version": "3.0.5-alpha.4ac681117.0",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "MIT",
@@ -107,8 +107,8 @@
107
107
  "@microsoft/dev-tunnels-contracts": "1.1.9",
108
108
  "@microsoft/dev-tunnels-management": "1.1.9",
109
109
  "@microsoft/kiota": "1.26.1",
110
- "@microsoft/m365-spec-parser": "^0.2.9-alpha.2df64786b.0",
111
- "@microsoft/teamsfx-api": "0.23.9-alpha.2df64786b.0",
110
+ "@microsoft/m365-spec-parser": "^0.2.9-alpha.4ac681117.0",
111
+ "@microsoft/teamsfx-api": "0.23.9-alpha.4ac681117.0",
112
112
  "adm-zip": "^0.5.10",
113
113
  "ajv": "^8.5.0",
114
114
  "axios": "^1.8.3",
@@ -231,7 +231,7 @@
231
231
  "resource/**/*",
232
232
  "templates/**/*"
233
233
  ],
234
- "gitHead": "22f747ed9efafd6634a1e6fa7ed902284abee34b",
234
+ "gitHead": "619a978e3c92a7a4bdca8585346aa763ba594215",
235
235
  "publishConfig": {
236
236
  "access": "public"
237
237
  },
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- using bowsong080401botsso.Configuration;
1
+ using {{YOUR_NAMESPACE}}.Configuration;
2
2
  using Json.More;
3
3
  using Microsoft.Agents.Builder;
4
4
  using Microsoft.Agents.Builder.Dialogs;
@@ -1,4 +1,4 @@
1
- using bowsong080401botsso.Configuration;
1
+ using {{YOUR_NAMESPACE}}.Configuration;
2
2
  using Microsoft.Agents.Builder;
3
3
  using Microsoft.Graph;
4
4
  using Microsoft.Kiota.Abstractions.Authentication;
@@ -9,12 +9,11 @@ using Microsoft.Agents.Builder.Dialogs.Prompts;
9
9
  using Microsoft.Agents.Core.Models;
10
10
  using Microsoft.Agents.Extensions.Teams.Models;
11
11
  using Microsoft.Identity.Client;
12
- using Newtonsoft.Json.Linq;
13
12
  using System.Net;
14
13
  using System.Text.RegularExpressions;
15
14
  using System.IdentityModel.Tokens.Jwt;
16
- using bowsong080401botsso.Configuration;
17
- using bowsong080401botsso.SSO;
15
+ using {{YOUR_NAMESPACE}}.Configuration;
16
+ using {{YOUR_NAMESPACE}}.SSO;
18
17
  using System.Text.Json;
19
18
  using Json.More;
20
19
 
@@ -0,0 +1,41 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ using {{YOUR_NAMESPACE}}.Configuration;
5
+
6
+ namespace {{YOUR_NAMESPACE}}.SSO;
7
+
8
+ /// <summary>
9
+ /// Contains settings for an <see cref="TeamsBotSsoPrompt"/>.
10
+ /// </summary>
11
+ public class TeamsBotSsoPromptSettings
12
+ {
13
+
14
+ /// <summary>
15
+ /// Constructor of TeamsBotSsoPromptSettings
16
+ /// </summary>
17
+ public TeamsBotSsoPromptSettings(BotAuthenticationOptions botAuthOptions, string[] scopes, int timeout = 900000)
18
+ {
19
+ BotAuthOptions = botAuthOptions;
20
+ Scopes = scopes;
21
+ Timeout = timeout;
22
+ }
23
+
24
+ /// <summary>
25
+ /// Gets or sets the array of strings that declare the desired permissions and the resources requested.
26
+ /// </summary>
27
+ /// <value>The array of strings that declare the desired permissions and the resources requested.</value>
28
+ public string[] Scopes { get; set; }
29
+
30
+ /// <summary>
31
+ /// Gets or sets the number of milliseconds the prompt waits for the user to authenticate.
32
+ /// Default is 900,000 (15 minutes).
33
+ /// </summary>
34
+ /// <value>The number of milliseconds the prompt waits for the user to authenticate.</value>
35
+ public int Timeout { get; set; }
36
+
37
+ /// <summary>
38
+ /// Gets or sets bot related authentication options.
39
+ /// </summary>
40
+ public BotAuthenticationOptions BotAuthOptions { get; set; }
41
+ }