Loading lesson…
Level 1 · Apprentice0 XP
Log in with another provider and call APIs on a user's behalf, safely.
Step 1 / 6
ProblemAn app asks users for their email password so it can read their calendar. Now it has full access forever, and one breach exposes everyone's accounts.
← → step
Before this: Authentication
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Core (30 min): in a Spring API, require a scope for write endpoints and write tests that use mock JWTs (an expired one and one with the wrong audience). Stretch: run Keycloak in Docker, issue real tokens, and validate issuer and audience against it.