Fix missing issuer
This commit is contained in:
parent
4f24b8bc6f
commit
da6ac79c1e
1 changed files with 2 additions and 0 deletions
|
|
@ -297,6 +297,8 @@ export async function discoverOAuthMetadata(
|
|||
authorizationServerUrl: string | URL,
|
||||
opts?: { protocolVersion?: string },
|
||||
): Promise<OAuthMetadata | undefined> {
|
||||
const issuer = new URL(authorizationServerUrl);
|
||||
|
||||
const wellKnownPath = `/.well-known/oauth-authorization-server${issuer.pathname}`;
|
||||
const url = new URL(wellKnownPath, authorizationServerUrl);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue