In the previous articles we saw how state stops login CSRF and how PKCE stops a stolen authorization code from being used. This one covers the last piece of the sign-in: exact redirect URIs , which stop an authorization code from being sent to the wrong place. At the end, a word on the nonce , which you'll see in every OpenID Connect sign-in. The app is the same as before: a BFF (backend for frontend) runs the sign-in and keeps the tokens on the server.
The attacks so far
Attack What the attacker does What catches it Article
Login CSRF Gets your browser to make the callback request with their authorization code and their state state : your browser never saved their state first
Authorization code injection Makes the callback request in their browser, with their state and your stolen authorization code PKCE: your authorization code is tied to your challenge, not theirs second
Words used here
Authorization code : the one-time ticket the identity provider gives after you log in, which the BFF exchanges for…