Code RoomAdd OAuth2 with checkpoints
MediumPrep Room Coding #4384

Add OAuth2 with checkpoints

Vibe & agenticAlgorithms & data structuresMid–Senior~20 min

You need an AI agent to add OAuth2 'login with GitHub' to a Go web app that currently uses session cookies. Sequence the build into verifiable steps, and decide which steps you review closely vs. let run. Security is the whole point here, so be specific about where human judgment is non-negotiable.

Implement
evaluate_oauth_callback(stored_state: str, returned_state: str, callback_redirect_uri: str, registered_redirect_uri: str, email_verified: bool, session_rotated: bool) → str
Examples
in["s_9f2a","s_9f2a","https://app.example.com/auth/callback","https://app.example.com/auth/callback",true,true]out"ok"
in["s_9f2a","","https://app.example.com/auth/callback","https://app.example.com/auth/callback",true,true]out"missing_state"
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 20 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.