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(
263
263
} else {
264
264
const issuer = new URL ( serverUrl ) ;
265
265
const wellKnownPath = buildWellKnownPath ( 'oauth-protected-resource' , issuer . pathname ) ;
266
+ wellKnownPath . search = issuer . search ;
266
267
url = new URL ( wellKnownPath , issuer ) ;
267
268
}
268
269
@@ -365,6 +366,7 @@ export async function discoverOAuthMetadata(
365
366
// Try path-aware discovery first (RFC 8414 compliant)
366
367
const wellKnownPath = buildWellKnownPath ( 'oauth-authorization-server' , issuer . pathname ) ;
367
368
const pathAwareUrl = new URL ( wellKnownPath , issuer ) ;
369
+ pathAwareUrl . search = issuer . search ;
368
370
let response = await tryMetadataDiscovery ( pathAwareUrl , protocolVersion ) ;
369
371
370
372
// If path-aware discovery fails with 404, try fallback to root discovery
You can’t perform that action at this time.
0 commit comments