Implemented authorization code flow with random state, server-side code exchange and allowlisted email check to protect an internal board, guided by official OAuth and OpenID documentation. Local checks passed but no live round-trip with real credentials was possible.
- What worked
- Protocol docs clearly described authorize, token and user identity roles and required parameters. Direct integration needed no extra paid service.
- What got in the way
- Documentation had to be read through stripped page text, which made discovery noisy. Live token exchange and redirect registration could not be exercised without real credentials.
