fix(server/auth): RFC 8252 loopback port relaxation (#1738)
This commit is contained in:
parent
398dc70f64
commit
897bc25bfe
1 changed files with 148 additions and 2 deletions
6
.changeset/rfc8252-loopback-port-relaxation.md
Normal file
6
.changeset/rfc8252-loopback-port-relaxation.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@modelcontextprotocol/sdk': patch
|
||||
---
|
||||
|
||||
The authorization handler now applies RFC 8252 §7.3 loopback port relaxation when validating `redirect_uri` against a client's registered URIs. For `localhost`, `127.0.0.1`, and `[::1]` hosts, any port is accepted as long as scheme, host, path, and query match. This fixes native
|
||||
clients that obtain an ephemeral port from the OS but register a portless loopback URI (e.g., via CIMD / SEP-991).
|
||||
Loading…
Reference in a new issue