Skip to content

Commit 431045c

Browse files
committed
2 parents 0e22c82 + ae00268 commit 431045c

File tree

192 files changed

+5667
-3120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+5667
-3120
lines changed

ExamplesAPIType.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ namespace DocuSign.CodeExamples.Common
88
{
99
public enum ExamplesAPIType
1010
{
11-
[Description("Reg")]
11+
[Description("reg")]
1212
Rooms = 0,
1313

1414
[Description("eg")]
1515
ESignature = 1,
1616

17-
[Description("ClickEg")]
17+
[Description("ceg")]
1818
Click = 2,
1919

20-
[Description("monitorExample")]
20+
[Description("meg")]
2121
Monitor = 3,
2222

23-
[Description("Aeg")]
23+
[Description("aeg")]
2424
Admin = 4,
2525
}
2626

JWT-Console/JWT-Console.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="DocuSign.eSign.dll" Version="6.0.0" />
33-
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
32+
<PackageReference Include="DocuSign.Admin" Version="1.4.0" />
33+
<PackageReference Include="DocuSign.eSign.dll" Version="6.6.0" />
34+
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
3435
<PackageReference Include="System.Runtime.Caching" Version="4.7.0" />
3536
</ItemGroup>
3637

JWTAuth.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ public static OAuthToken AuthenticateWithJWT(string api, string clientId, string
7171
"permission_read",
7272
"identity_provider_read",
7373
"domain_read",
74+
"user_data_redact",
75+
"asset_group_account_read",
76+
"asset_group_account_clone_write",
77+
"asset_group_account_clone_read",
7478
});
7579
}
7680

Quick_ACG/Quick_ACG - VS2019.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<RootNamespace>DocuSign.CodeExamples</RootNamespace>
77
</PropertyGroup>
@@ -20,8 +20,8 @@
2020
<Compile Include="..\ExamplesAPIType.cs" Link="ExamplesAPIType.cs" />
2121
<Compile Include="..\launcher-csharp\Common\SetViewBagAttribute.cs" Link="Common\SetViewBagAttribute.cs" />
2222
<Compile Include="..\launcher-csharp\EmbeddedSigningCeremony.cs" Link="EmbeddedSigningCeremony.cs" />
23-
<Compile Include="..\launcher-csharp\eSignature\Controllers\Eg001EmbeddedSigningController.cs" Link="eSignature\Controllers\Eg001EmbeddedSigningController.cs" />
24-
<Compile Include="..\launcher-csharp\eSignature\Models\DSConfiguration.cs" Link="eSignature\Models\DSConfiguration.cs" />
23+
<Compile Include="..\launcher-csharp\eSignature\Controllers\EmbeddedSigningCeremony.cs" Link="eSignature\Controllers\EmbeddedSigningCeremony.cs" />
24+
<Compile Include="..\launcher-csharp\eSignature\Models\DSConfiguration.cs" Link="eSignature\Models\DSConfiguration.cs" />
2525
<Compile Include="..\launcher-csharp\eSignature\Models\LauncherTexts.cs" Link="eSignature\ModelsForManifest\LauncherTexts.cs" />
2626
<Compile Include="..\launcher-csharp\eSignature\Models\ModelsToReadManifest\AdditionalPage.cs" Link="eSignature\ModelsForManifest\AdditionalPage.cs" />
2727
<Compile Include="..\launcher-csharp\eSignature\Models\ModelsToReadManifest\APIs.cs" Link="eSignature\ModelsForManifest\APIs.cs" />
@@ -47,7 +47,7 @@
4747
</ItemGroup>
4848

4949
<ItemGroup>
50-
<PackageReference Include="DocuSign.eSign.dll" Version="6.0.0" />
50+
<PackageReference Include="DocuSign.eSign.dll" Version="6.5.0" />
5151
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
5252
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0-preview1.19506.2" />
5353
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0-preview1.19506.2">

Quick_ACG/Quick_ACG.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<Compile Include="..\ExamplesAPIType.cs" Link="ExamplesAPIType.cs" />
2121
<Compile Include="..\launcher-csharp\Common\SetViewBagAttribute.cs" Link="Common\SetViewBagAttribute.cs" />
2222
<Compile Include="..\launcher-csharp\EmbeddedSigningCeremony.cs" Link="EmbeddedSigningCeremony.cs" />
23-
<Compile Include="..\launcher-csharp\eSignature\Controllers\Eg001EmbeddedSigningController.cs" Link="eSignature\Controllers\Eg001EmbeddedSigningController.cs" />
23+
<Compile Include="..\launcher-csharp\eSignature\Controllers\EmbeddedSigningCeremony.cs" Link="eSignature\Controllers\EmbeddedSigningCeremony.cs" />
2424
<Compile Include="..\launcher-csharp\eSignature\Models\DSConfiguration.cs" Link="eSignature\Models\DSConfiguration.cs" />
2525
<Compile Include="..\launcher-csharp\eSignature\Models\LauncherTexts.cs" Link="eSignature\ModelsForManifest\LauncherTexts.cs" />
2626
<Compile Include="..\launcher-csharp\eSignature\Models\ModelsToReadManifest\AdditionalPage.cs" Link="eSignature\ModelsForManifest\AdditionalPage.cs" />
@@ -47,7 +47,8 @@
4747
</ItemGroup>
4848

4949
<ItemGroup>
50-
<PackageReference Include="DocuSign.eSign.dll" Version="6.0.0" />
50+
<PackageReference Include="DocuSign.Admin" Version="1.4.0" />
51+
<PackageReference Include="DocuSign.eSign.dll" Version="6.6.0" />
5152
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
5253
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0-preview1.19506.2" />
5354
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0-preview1.19506.2">

Quick_ACG/Startup.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ public void ConfigureServices(IServiceCollection services)
3636
{
3737
// {1} - controller
3838
// {0} - action
39-
o.ViewLocationFormats.Add("Views/{1}/{0}.cshtml");
40-
4139
o.AreaViewLocationFormats.Clear();
40+
o.ViewLocationFormats.Clear();
41+
o.AreaViewLocationFormats.Add("Views/Eg001EmbeddedSigning/quickEmbeddedSigning" + RazorViewEngine.ViewExtension);
42+
o.ViewLocationFormats.Add("Views/Eg001EmbeddedSigning/quickEmbeddedSigning" + RazorViewEngine.ViewExtension);
4243
});
4344

4445
services.Configure<CookiePolicyOptions>(options =>

Quick_ACG/eSignature/Controllers/EgController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public virtual IActionResult Get()
7979
ViewBag.DsConfig = Config;
8080
InitializeInternal();
8181

82-
if (Config.QuickACG == "true" && !(this is Eg001EmbeddedSigningController))
82+
if (Config.QuickACG == "true" && !(this is EmbeddedSigningCeremony))
8383
{
8484
return Redirect("eg001");
8585
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ This repository uses the MIT License. See [LICENSE](./LICENSE) for details.
133133

134134
### Pull Requests
135135
Pull requests are welcomed. Pull requests will only be considered if their content
136-
uses the MIT License.
136+
uses the MIT License.

launcher-csharp.Tests/JwtLoginMethodUnitTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ private string BuildConsentUrl(ExamplesAPIType apiType, TestConfig _testConfig)
9090
else if (apiType == ExamplesAPIType.Admin)
9191
{
9292
scopes += "%20user_read%20user_write%20organization_read%20account_read%20group_read%20"
93-
+ "permission_read%20identity_provider_read%20domain_read";
93+
+ "permission_read%20identity_provider_read%20domain_read%20user_data_redact%20"
94+
+ "asset_group_account_read%20asset_group_account_clone_write%20asset_group_account_clone_read";
9495
}
9596

9697
string caret = "";
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using DocuSign.eSign.Client;
2+
3+
namespace launcher_csharp.Tests
4+
{
5+
public interface ITestConfig
6+
{
7+
public string ClientId { get; set; }
8+
9+
public string Host { get; set; }
10+
11+
public DocuSignClient ApiClient { get; set; }
12+
13+
public string AccountId { get; set; }
14+
15+
public string SignerEmail { get; set; }
16+
17+
public string SignerName { get; set; }
18+
19+
public string AccessToken { get; set; }
20+
21+
public string BasePath { get; set; }
22+
23+
public string TemplateId { get; set; }
24+
25+
public string ImpersonatedUserId { get; set; }
26+
27+
public string OAuthBasePath { get; set; }
28+
29+
public string PrivateKey { get; set; }
30+
31+
public string PathToSolution { get; set; }
32+
33+
public byte[] PrivateKeyBytes { get; set; }
34+
35+
public void OpenUrlUsingConsoleWindow(string url);
36+
}
37+
}

0 commit comments

Comments
 (0)