Skip to content

Commit 3eae622

Browse files
committed
Web forms updates - adding new scope and latest version of the SDK
1 parent b764ebd commit 3eae622

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

JWTAuth.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public static OAuthToken AuthenticateWithJwt(string api, string clientId, string
8181
if (apiType == ExamplesApiType.WebForms)
8282
{
8383
scopes.Add("webforms_manage");
84+
scopes.Add("webforms_instance_write");
8485
}
8586

8687
return docuSignClient.RequestJWTUserToken(

launcher-csharp/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public Startup(IConfiguration configuration)
8383

8484
this.apiTypes.Add(ExamplesApiType.WebForms, new List<string>
8585
{
86-
"signature", "webforms_manage",
86+
"signature", "webforms_manage", "webforms_instance_write",
8787
});
8888
}
8989

launcher-csharp/eSignature/Controllers/AccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private string BuildConsentUrl()
120120
}
121121
else if (apiType == ExamplesApiType.WebForms)
122122
{
123-
scopes += " webforms_manage";
123+
scopes += " webforms_manage webforms_instance_write";
124124
}
125125

126126
return this.Configuration["DocuSign:AuthorizationEndpoint"] + "?response_type=code" +

launcher-csharp/launcher-csharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<PackageReference Include="DocuSign.eSign.dll" Version="6.6.0" />
4242
<PackageReference Include="DocuSign.Monitor" Version="1.1.1" />
4343
<PackageReference Include="DocuSign.Rooms" Version="1.3.0" />
44-
<PackageReference Include="DocuSign.WebForms" Version="1.0.0-rc8" />
44+
<PackageReference Include="DocuSign.WebForms" Version="1.0.1-rc10" />
4545
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
4646
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.0-preview1.19506.2" />
4747
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.0-preview1.19506.2">

0 commit comments

Comments
 (0)