File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ export async function discoverOAuthProtectedResourceMetadata(
263263 } else {
264264 const issuer = new URL ( serverUrl ) ;
265265 const wellKnownPath = buildWellKnownPath ( 'oauth-protected-resource' , issuer . pathname ) ;
266+ wellKnownPath . search = issuer . search ;
266267 url = new URL ( wellKnownPath , issuer ) ;
267268 }
268269
@@ -365,6 +366,7 @@ export async function discoverOAuthMetadata(
365366 // Try path-aware discovery first (RFC 8414 compliant)
366367 const wellKnownPath = buildWellKnownPath ( 'oauth-authorization-server' , issuer . pathname ) ;
367368 const pathAwareUrl = new URL ( wellKnownPath , issuer ) ;
369+ pathAwareUrl . search = issuer . search ;
368370 let response = await tryMetadataDiscovery ( pathAwareUrl , protocolVersion ) ;
369371
370372 // If path-aware discovery fails with 404, try fallback to root discovery
You can’t perform that action at this time.
0 commit comments