JWT (JSON Web Token)

A JSON Web Token carries claims in a compact format. This playground uses a signed JWT in JWS compact form: three base64url-encoded segments for the header, payload and signature. JWT can also use JWE encryption, so not every JWT is a readable three-part token.

How it works

Send the token as a bearer credential. A verifier must restrict allowed algorithms, verify the signature with a trusted key, and validate the issuer, audience and time claims required by its application. The payload is not trustworthy merely because it can be decoded.

The misconception

Signing does not encrypt a JWS payload; anyone holding this playground token can read it. JWT also supports encryption through JWE. A self-contained token is not automatically revoked: immediate revocation needs additional controls such as a denylist, token version checks or introspection.

Try it here

`POST /auth/v1/login` with admin/admin123 issues a genuinely signed JWT. Decode the middle segment and read your own claims; then wait for it to expire and watch the 401 arrive.

Sources

Other terms

All glossary terms · Testing techniques · All 39 mock REST APIs

Last updated