liveBook · Manning

Authentication challenge

An authentication challenge is a fresh, unpredictable verifier-provided value that binds a response to a specific authentication exchange.

How 2 Manning books explain it

Software Security for Developers

An authentication challenge is a fresh, unpredictable value supplied during an authentication ceremony to bind the response to that specific ceremony and demonstrate possession of a credential.

How it is used
Binds a WebAuthn authentication response to one login ceremony and demonstrates possession of the registered credential.
How deep it goes
Explains generation, storage, signing, and verification, but stops short of a production-ready implementation and persistent storage design.
Examples
Uses a 32-byte SecureRandom value, Java challenge and authentication endpoints, and a simulated JavaScript/WebAuthn exercise.
What you can do after
Build it from scratch by generating a challenge, requesting a signed response, and verifying it against the registered public key.

Read how Software Security for Developers explains authentication challenge →

Real-World Cryptography

A challenge is verifier-generated randomness sent to a prover to constrain the prover's response in an interactive proof.

How it is used
Constrains prover responses in interactive zero-knowledge identification protocols.
How deep it goes
Explains commitment, random challenge, and response steps, but stops short of formal proof details.
Examples
Uses Peggy, Victor, random values k and c, response s, and the Schnorr identification protocol.
What you can do after
Evaluate how verifier randomness prevents a prover from adapting a response after seeing the verification target.

Read how Real-World Cryptography explains authentication challenge →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.