invalid_token
Docs version v1 (main)Nauthera is pre-1.0, in a design-partner program
The access token presented is missing, invalid, expired, revoked or not usable here (RFC 6750 §3.1).
Meaning
Sent with 401 and a WWW-Authenticate challenge by /userinfo (in a problem document
whose code is invalid_token) and by /register and /register/{client_id} for the
initial and registration access tokens. The token does not verify, has expired, names
another audience or organization, belongs to a revoked grant, is DPoP-bound and sent as
Bearer or with another key's proof, or, at /register, carries no org claim. An
unknown client_id on /register/{client_id} answers it too, so client ids cannot be
probed. /introspect never sends it: it answers active: false.
Impact
The application cannot read the user's claims or manage its registration with that token. Normal when an access token has expired; otherwise a sign that the grant was revoked or the token is used where it does not belong.
Diagnosis
- Refusals at
/userinfoare recorded asoauth.token.presentedwith a finer reason (token_expired,missing_expiry,audience_mismatch,invalid_dpop_proof,unauthenticated) and a cause such astoken_kid_unknown,token_issuer_mismatch,token_signature_invalidorgrant_revoked. Registration refusals are recorded asclient.. Find them byregistration. attempted X-Request-ID. - Check the token's
exp,audandiss, and whether it is DPoP-bound (cnf.jkt).
Mitigation
- As a client developer: refresh or sign in again for a new token; send a bound token
with the
DPoPscheme and a proof. For/register, use a token with thenauthera.scope and anclients: register orgclaim, and keep theregistration_from the registration response.access_ token - As an operator: if every token of an organization fails with
token_kid_unknown, check the organization's signing keys and the key-encryption key. - As a user: sign in to the application again.
Escalation
If freshly issued tokens are refused, open an issue with the request id, the server version and the recorded reason and cause. Never attach the token itself.
OAuth error runbooks · Generated from internal/ in nauthera-server.