liveBook · Manning

Payload

As explained in Pro ASP.NET Core 7, Tenth Edition

A token payload is the data section of a security token that contains claims and other token properties.

A token payload is the data section of a security token. It carries claims and token properties that the server uses when authenticating requests. In a JWT, unique_name identifies the user, while nbf, exp, and iat record token timestamps. section 39.5.5

The payload is produced after submitted credentials pass password validation. The server protects it with the configured key, returns the token to the client, and later reads unique_name when a bearer token arrives in the Authorization header. section 39.5.5

A payload commonly contains:

  • Additional claims or properties when the token's purpose requires them. section 39.5.5

Payload carried by a JWT

A decoded payload can look like { "unique_name": "bob", "nbf": 1579765454, "exp": 1579851854, "iat": 1579765454 }. The client sends the resulting token as Authorization: Bearer <token>; the server uses unique_name to authenticate the request.

How Pro ASP.NET Core 7, Tenth Edition covers it

How deep it goes
Explains payload contents, generation, protection, and request use, but does not detail claim validation beyond the username.
Examples
Shows unique_name, nbf, exp, and iat in a decoded payload, then places the token in a bearer Authorization header.
What it assumes
Assumes credentials, password validation, JWTs, and bearer authorization, while showing the payload structure directly.
What you can do after
Build it from validated credentials by generating a JWT payload and send the resulting token with later authenticated requests.
How it connects
Connects token payloads with JWT, claims, password validation, bearer authentication, and the Authorization header.

Also explained in

Compare how 8 books explain payload →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Pro ASP.NET Core 7, Tenth Edition. The section links point to the parts of the book it draws on.