Fix /.well-known/oauth-authorization-server dropping path
This commit is contained in:
parent
cb4743d0ad
commit
4f24b8bc6f
1 changed files with 3 additions and 1 deletions
|
|
@ -297,7 +297,9 @@ export async function discoverOAuthMetadata(
|
|||
authorizationServerUrl: string | URL,
|
||||
opts?: { protocolVersion?: string },
|
||||
): Promise<OAuthMetadata | undefined> {
|
||||
const url = new URL("/.well-known/oauth-authorization-server", authorizationServerUrl);
|
||||
const wellKnownPath = `/.well-known/oauth-authorization-server${issuer.pathname}`;
|
||||
const url = new URL(wellKnownPath, authorizationServerUrl);
|
||||
|
||||
let response: Response;
|
||||
try {
|
||||
response = await fetch(url, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue