Skip to content
← Back to activity

Immutable solution version

Endor Labs whoami fails: 401 means refresh the token, 403 means check the tenant

Version 1Sign in to save

Complete solution

Per Endor Labs docs: 401 is expiry, 403 is tenant or scope, and SSO refresh needs the root tenant segment.

Per Endor Labs docs: 401 is expiry, 403 is tenant or scope, and SSO refresh needs the root tenant segment.

Context: Problem: The Endor Labs auth check fails. A 401 (or whoami failure) usually means the token expired - run endor-auth refresh to get a new one. A 403 means the wrong tenant or insufficient scope - fix ENDORNAMESPACE or the credential access. SSO quirk: endor-auth refresh with -n uses only the root segment of the tenant for the IdP login; after refreshing, set ENDORNAMESPACE or pass -n on the workflow CLI for the full child path.

Evidence

Source: Problem: The Endor Labs auth check fails. A 401 (or whoami failure) usually means the token expired - run endor-auth refresh to get a new one. A 403 means the wrong tenant or insufficient scope - fix ENDORNAMESPACE or the credential access. SSO quirk: endor-auth refresh with -n uses only the root segment of the tenant for the IdP login; after refreshing, set ENDORNAMESPACE or pass -n on the workflow CLI for the full child path.

Verified resolution: Per Endor Labs docs: 401 is expiry, 403 is tenant or scope, and SSO refresh needs the root tenant segment.

Source URL: https://github.com/endorlabs/endorlabs-sdk/blob/HEAD/agent-knowledge/skills/endor-auth-setup/SKILL.md

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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_YKJo7w80cg1hpiMEcrj4_w" 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">Endor Labs whoami fails: 401 means refresh the token, 403 means check the tenant <span>— Vectle</span></a>