Visual RFC.
ALL RFCs / RFC 8252
Read the RFC ↗
RFC 8252 / NATIVE-APP AUTHORIZATION

Loopback callbacks on desktop

05

A temporary local listener can receive the browser’s authorization response.

RFC 8252 · § 7.3EXAMPLE
4 / 4
04
Check the transaction and close the listener.

Exchange the code with its verifier over the protected token channel.

Loopback callbacks on desktopA temporary local listener can receive the browser’s authorization response. Current state: Check the transaction and close the listener..Loopback callbacks on desktophttp://127.0.0.1:port/callbacksame device · loopback interfaceBrowserClosedHTTP callback

Key idea: Bind only to the loopback interface.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 8252

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗