Property AllowLoopbackRedirectPortWildcard
RFC 8252 §7.3 — accept any port on a client's registered loopback redirect URI.
A native or CLI app (think az login, gh auth login) cannot know its callback
port before it starts: it asks the OS for an ephemeral one, so the port changes on every run
and cannot be registered ahead of time. §7.3 requires the authorization server to compare
everything about a loopback redirect URI EXCEPT the port. With this off, desktop clients
simply cannot use this provider.
The widening is narrow by construction: it applies only when the client has ALREADY
registered a redirect URI whose host is the loopback literal 127.0.0.1 or
[::1] (never the name localhost — §8.3 warns that a name goes through
resolution and can be pointed elsewhere), and only the port is ignored — scheme, host, path,
query and fragment must still match exactly. A web client registered at
https://app.example.com/cb has no loopback URI to match, so nothing about it changes.
Default: true — this is a MUST in RFC 8252 §7.3, not an opt-in feature.
public bool AllowLoopbackRedirectPortWildcard { get; set; }