Skip to content

Commit 244c158

Browse files
committed
2 parents 4972f0f + 88694f9 commit 244c158

33 files changed

+3763
-2908
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,5 @@ __pycache__/
263263
#configuration files (secrets), should not be checked in to source control
264264
appsettings.json
265265
private.key
266-
app.config
266+
app.config
267+
web-form-config.json

ExamplesAPIType.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ public enum ExamplesApiType
4343
/// </summary>
4444
[Description("con")]
4545
Connect = 5,
46+
47+
/// <summary>
48+
/// Web Forms API
49+
/// </summary>
50+
[Description("web")]
51+
WebForms = 6,
4652
}
4753

4854
public static class ExamplesApiTypeExtensions

ExamplesApiTypeExtensions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ public enum ExamplesApiType
4343
/// </summary>
4444
[Description("con")]
4545
Connect = 5,
46+
47+
/// <summary>
48+
/// Web Forms API
49+
/// </summary>
50+
[Description("web")]
51+
WebForms = 6,
4652
}
4753

4854
public static class ExamplesApiTypeExtensions

JWT-Console/JWT-Console - VS2019.csproj

Lines changed: 0 additions & 37 deletions
This file was deleted.

JWT-Console/JWT-Console - VS2019.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

JWTAuth.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ public static OAuthToken AuthenticateWithJwt(string api, string clientId, string
7878
});
7979
}
8080

81+
if (apiType == ExamplesApiType.WebForms)
82+
{
83+
scopes.Add("webforms_read");
84+
scopes.Add("webforms_instance_write");
85+
scopes.Add("webforms_instance_read");
86+
}
87+
8188
return docuSignClient.RequestJWTUserToken(
8289
clientId,
8390
impersonatedUserId,

Quick_ACG/Quick_ACG - VS2019.csproj

Lines changed: 0 additions & 67 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ For a list of code examples that use the Admin API, see the [How-to guides overv
7979
where {base_url} is the URL for the web app.
8080

8181
1. [C# .NET Core](https://dotnet.microsoft.com/download/dotnet-core) 3.1 or later.
82-
1. [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) with ASP.NET package (Visual Studio 2019 is also supported).
82+
1. [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) with ASP.NET package
8383

8484

8585
### Installation steps
@@ -118,11 +118,11 @@ Also, in order to select JSON Web Token authentication in the launcher, in launc
118118
1. Select your desired code example.
119119

120120
## Authorization Code Grant embedded signing example:
121-
1. Double click the Quick_ACG.csproj (or Quick_ACG-2019.csproj for VS 2109) file in the Quick_ACG folder of your Quickstart project.
121+
1. Double click the Quick_ACG.csproj file in the Quick_ACG folder of your Quickstart project.
122122
1. Select the green Play IIS Express button.
123123

124124
## JWT grant remote signing project
125-
1. Double click the JWT-Console.csproj (or JWT-Console-2019.csproj for VS 2109) file in the JWT-Console folder of your Quickstart project.
125+
1. Double click the JWT-Console.csproj file in the JWT-Console folder of your Quickstart project.
126126
1. Select the green Play JWT Console button.
127127

128128
## Payments code example

launcher-csharp - VS2019.sln

Lines changed: 0 additions & 48 deletions
This file was deleted.

launcher-csharp.Tests/JwtLoginMethodUnitTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ private string BuildConsentUrl(ExamplesApiType apiType, TestConfig testConfig)
9292
scopes += "%20user_read%20user_write%20organization_read%20account_read%20group_read%20"
9393
+ "permission_read%20identity_provider_read%20domain_read%20user_data_redact%20"
9494
+ "asset_group_account_read%20asset_group_account_clone_write%20asset_group_account_clone_read";
95+
} else if (apiType == ExamplesApiType.WebForms)
96+
{
97+
scopes += "%20webforms_manage";
9598
}
9699

97100
string caret = "";

0 commit comments

Comments
 (0)