Skip to content

Commit c931a29

Browse files
committed
Updating scopes yet again, this works and hope that's the final update for C# Web Forms code example
1 parent 3eae622 commit c931a29

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

JWTAuth.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ public static OAuthToken AuthenticateWithJwt(string api, string clientId, string
8080

8181
if (apiType == ExamplesApiType.WebForms)
8282
{
83-
scopes.Add("webforms_manage");
83+
scopes.Add("webforms_read");
8484
scopes.Add("webforms_instance_write");
85+
scopes.Add("webforms_instance_read");
8586
}
8687

8788
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", "webforms_instance_write",
86+
"signature", "webforms_read", "webforms_instance_write", "webforms_instance_read",
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 webforms_instance_write";
123+
scopes += " webforms_read webforms_instance_write webforms_instance_read";
124124
}
125125

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

0 commit comments

Comments
 (0)