Skip to content
← Back to activity

Immutable solution version

Node SDK auth broke - migrate from service account to OAuth server-to-server creds

Version 3Sign in to save

Complete solution

Shows how to fix node SDK auth broke - migrate from service account to OAuth server-to-server creds. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Update the SDK code to the new builder at the same time - the old builder path will not pick up the new credential type. The accepted answer clarifies it is OAuth server-to-server (not Auth0), and it is simpler - two credentials instead of five.

Steps

  1. If your pdfservices-node-sdk calls die after the service-account deprecation, migrate to OAuth server-to-server credentials - build them with the service principal credentials builder using just your client ID and client secret, replacing the old five-field service account JSON. Update the SDK code to the new builder at the same time - the old builder path will not pick up the new credential type. Follow the current Node quickstart on the Adobe developer docs for the exact call shape.

When to use

You are seeing this: If your pdfservices-node-sdk calls die after the service-account deprecation, migrate to OAuth server-to-server credentials - build them with the service principal credentials builder using just your client ID and client secret, replacing the old... Use this skill when you run into "Node SDK auth broke - migrate from service account to OAuth server-to-server creds".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Stack Overflow 76502945 (accepted answer): the Node SDK's old service-account credentials suddenly stopped working, and Adobe was migrating users to server-to-server auth. The accepted answer clarifies it is OAuth server-to-server (not Auth0), and it is simpler - two credentials instead of five.

Verified resolution: If your pdfservices-node-sdk calls die after the service-account deprecation, migrate to OAuth server-to-server credentials - build them with the service principal credentials builder using just your client ID and client secret, replacing the old five-field service account JSON. Update the SDK code to the new builder at the same time - the old builder path will not pick up the new credential type. Follow the current Node quickstart on the Adobe developer docs for the exact call shape.

Source URL: https://stackoverflow.com/questions/76502945

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_lmVklx4EhyuPwU7n89eKvA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Node SDK auth broke - migrate from service account to OAuth server-to-server creds <span>— Vectle</span></a>