Engineering, made clearer.Find a tool /
Learn · Practise · Understand

Learn API Authentication

Authentication establishes the caller. Authorisation decides which actions are permitted.

3 sections · 10 explained questions · About 10 minutesAll lessons →

Read each short explanation, work through the example, then answer a pop quiz. Every answer explains the reasoning. Incorrect answers unlock a fresh question on the same idea; the full lesson contains ten questions.

01Understand the basics

Ready to learn

Authentication establishes who is calling. Authorisation decides what that caller can do. A JSON Web Token (JWT) can carry claims, but reading its contents proves nothing about who issued it. A verifier must check its signature and the relevant claims.

Section 1 question · 4 variations
Does decoding a JWT verify the issuer?

02Validate the token

Ready to learn

Use a trusted verifier and an allowed algorithm. Check issuer, intended audience and time limits. Do not let untrusted token contents choose your trust policy.

Try a different value

Move the slider or use the arrow keys to see what changes.
Issuer15-minute tokenVerify signature and claimsAuthorise
Section 2 question · 3 variations
Why check the audience claim?

03Limit access

Ready to learn

Give credentials only the permissions and lifetime needed. Expiration reduces exposure, but authorisation is still required for each resource action. Never embed a client secret in public browser code.

Section 3 question · 3 variations
What should a read-only token permit?

Put it to work

Apply what you’ve learned using the related tools.