Skip to content

Commit 68cdac6

Browse files
committed
added fixes for VS22-Windows-JWT
1 parent ec1ecb4 commit 68cdac6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

JWT-Console/JWT-Console.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<ItemGroup>
2121
<Compile Include="..\DSHelper.cs" Link="DSHelper.cs" />
22+
<Compile Include="..\ExamplesAPIType.cs" Link="ExamplesAPIType.cs" />
2223
<Compile Include="..\JWTAuth.cs" Link="JWTAuth.cs" />
2324
<Compile Include="..\launcher-csharp\eSignature\Examples\SigningViaEmail.cs" Link="SigningViaEmail.cs" />
2425
</ItemGroup>

JWT-Console/Program.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ static void Main(string[] args)
4242
// build a URL to provide consent for this Integration Key and this userId
4343
string url = "https://" + ConfigurationManager.AppSettings["AuthServer"] + "/oauth/auth?response_type=code" + caret + "&scope=impersonation%20signature" + caret +
4444
"&client_id=" + ConfigurationManager.AppSettings["ClientId"] + caret + "&redirect_uri=" + DevCenterPage;
45-
Console.WriteLine($"Consent is required - launching browser (URL is {url.Replace(caret, "")})");
45+
46+
string consentRequiredMessage = $"Consent is required - launching browser (URL is {url})";
47+
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
48+
{
49+
consentRequiredMessage = consentRequiredMessage.Replace(caret, "");
50+
}
51+
52+
Console.WriteLine(consentRequiredMessage);
4653

4754
// Start new browser window for login and consent to this app by DocuSign user
4855
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))

0 commit comments

Comments
 (0)