← API Security

Which App Can Redeem This Code?

Change state, PKCE, redirect matching, and audience across a simulated native login.

Intermediate20 min·updated 2026-11-15

You’re reading a preview. Premium includes the full lesson and specialist practice. View the full curriculum.

Start with the ordinary operation

Two native apps participate in a controlled authorization-code model. The legitimate app retains state and may retain a PKCE verifier. The competing app can receive the callback in this fixture, so we can distinguish seeing a code from being able to redeem it.

Continue with Premium

Continue API Security with the complete lessons, guided exercises, code-review challenges and assessments.

In the full lesson

  • Predict before revealing
  • Explain the repair
  • Check the boundary in another application
Which App Can Redeem This Code?