Loopback callbacks on desktop
05A temporary local listener can receive the browser’s authorization response.
Exchange the code with its verifier over the protected token channel.
Key idea: Bind only to the loopback interface.
Rules & examples
Bind only to the loopback interface.
- Use loopback IP literals and an available ephemeral port; servers MUST allow the port to vary.
- Try IPv4 and IPv6 as supported. Listen only for the authorization transaction, then close the port.
- The local redirect may use HTTP because it stays on the device; localhost names are NOT RECOMMENDED (§ 8.3).
Other local apps may still intercept some loopback flows. The local transport exception does not remove the PKCE requirement.
Sources
New to this? Start hereA quick picture + helpful background
A key is different from permission.
An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.