OAuth PDF services API sdk | Community
Skip to main content
June 14, 2023
Question

OAuth PDF services API sdk

  • June 14, 2023
  • 1 reply
  • 1502 views

I've been utilizing JWT credentials with the SDK to make API calls successfully up until now. Here's the .NET code snippet I've been using:

 

var executionContext = ExecutionContext.Create(this.credentials);

FileRef destination = fileRefOperation.Execute(executionContext);

 

However, a few days ago, I started encountering an error message: "{"Access Forbidden; transactionId=xxx"}" whenever I attempt to execute the API calls.

 

This type of credentials should not be deprecated until January of 2025.

 

Anyway, To troubleshoot the issue, I attempted to migrate to OAuth credentials but I could not found the .net documentation updated for the oauth token. All of them are working with the old jwt authentication

 

Trying to use the same sdk I encountered another error: "The client must have the exchange_jwt scope pedfservicesdk.".

I also can acces the Oauth token but the sdk does not provide something to use it.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
June 15, 2023

@federicorainaldi Please help us with :

1) The .NET SDK version that you are using.

2) Paste the exact error logs from the SDK.

3) The operation you are trying to invoke and one such transaction ID for the same.

June 15, 2023

Hi anubhav-mhjn

 

Here: 

1) Until now i have used 2.2, I update yesterday to 3.0 and I keep having the same error (Im using framework 4.6.1 so is the latest version support)

2) The message is just "{"Access Forbidden; transactionId=xxx"}"

 

3) The operation is a html to PDF , one of the id is 0l6GQcs3NDNxz7SbaDfQihL1WUBfJF5r

 

 

Adobe Employee
June 21, 2023

@federicorainaldi 

We checked from our end, it seems like the request with the transaction ID 0l6GQcs3NDNxz7SbaDfQihL1WUBfJF5r did not reach to our servers.

 

Are you behind a blocking/secure network proxy that blocks external URLs?

If yes, please visit the following link and allowlist our API endpoints for SDK v3.x at your network proxy - https://developer.adobe.com/document-services/docs/overview/pdf-services-api/gettingstarted/#sdk