We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/.well-known/oauth-authorization-server
1 parent cb4743d commit 4f24b8bCopy full SHA for 4f24b8b
src/client/auth.ts
@@ -297,7 +297,9 @@ export async function discoverOAuthMetadata(
297
authorizationServerUrl: string | URL,
298
opts?: { protocolVersion?: string },
299
): Promise<OAuthMetadata | undefined> {
300
- const url = new URL("/.well-known/oauth-authorization-server", authorizationServerUrl);
+ const wellKnownPath = `/.well-known/oauth-authorization-server${issuer.pathname}`;
301
+ const url = new URL(wellKnownPath, authorizationServerUrl);
302
+
303
let response: Response;
304
try {
305
response = await fetch(url, {
0 commit comments