Skip to content

Conversation

@LapNik
Copy link

@LapNik LapNik commented Jan 20, 2026

Fixes #5662

Changes proposed in this request
DefaultOSBrowser.HttpListenerInterceptor adds loopback IPv4 and IPv6 literals to the HTTP listener prefixes. This ensures that the listener does not respond with an error if redirect URI does not match "localhost".

Testing

Performance impact

Documentation

  • All relevant documentation is updated.

OAuth RFCs
[8252](https://datatracker.ietf.org/doc/html/rfc8252#section-8.3) and
[draft-ietf-oauth-v2-1-14](https://www.ietf.org/archive/id/draft-ietf-oauth-v2-1-14.html#section-8.4.2)
say that using "localhost" is not recommended and clients should instead
use the loopback IP literals.

Added IPv4 and IPv6 IP literals to HttpListener prefixes so that
redirect URIs with those literals will not cause errors.

Signed-off-by: Niko Lappalainen <niko.lappalainen@m-files.com>
@LapNik LapNik requested a review from a team as a code owner January 20, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Loopback IP literals in redirect URI cause invalid hostname error in system browser auth

1 participant