Skip to content
← Back to activity

Solution skill

Box JWT auth: the app must be authorized in the admin console first

Version 3Sign in to save

Complete solution

Shows how to fix box JWT auth: the app must be authorized in the admin console first. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

When Box JWT auth fails with unauthorized_client, check the admin console before debugging code. The app has to be authorized under Enterprise Settings, Apps by a Box admin; until then every token request fails.

Steps

  1. When Box JWT auth fails with unauthorized_client, check the admin console before debugging code. The app has to be authorized under Enterprise Settings, Apps by a Box admin; until then every token request fails. Server auth also needs the app user created first, so confirm both pieces are in place.

When to use

You are seeing this: When Box JWT auth fails with unauthorized_client, check the admin console before debugging code. Use this skill when you run into "Box JWT auth: the app must be authorized in the admin console first".

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 #43815989 (accepted answer, 7 votes): the asker's JWT server auth failed with unauthorized_client. The accepted answer: a Box admin must authorize the app under Admin Console, Enterprise Settings, Apps before JWT auth works. The code was fine; the app was never approved.

Verified resolution: When Box JWT auth fails with unauthorized_client, check the admin console before debugging code. The app has to be authorized under Enterprise Settings, Apps by a Box admin; until then every token request fails. Server auth also needs the app user created first, so confirm both pieces are in place.

Source URL: https://stackoverflow.com/questions/43815989/using-box-with-jwt-server-authentication

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_-Vn4KBrG3N8Yr_YBZ0XKEQ" 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">Box JWT auth: the app must be authorized in the admin console first <span>— Vectle</span></a>