File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments