File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1778,7 +1778,7 @@ describe("OAuth Authorization", () => {
1778
1778
status : 200 ,
1779
1779
json : async ( ) => ( {
1780
1780
resource : "https://my.resource.com/" ,
1781
- authorization_servers : [ "https://auth.example.com/" ] ,
1781
+ authorization_servers : [ "https://auth.example.com/oauth " ] ,
1782
1782
} ) ,
1783
1783
} ) ;
1784
1784
} else if ( urlString === "https://auth.example.com/.well-known/oauth-authorization-server/path/name" ) {
@@ -1821,8 +1821,8 @@ describe("OAuth Authorization", () => {
1821
1821
// First call should be to PRM
1822
1822
expect ( calls [ 0 ] [ 0 ] . toString ( ) ) . toBe ( "https://my.resource.com/.well-known/oauth-protected-resource/path/name" ) ;
1823
1823
1824
- // Second call should be to AS metadata with the path from serverUrl
1825
- expect ( calls [ 1 ] [ 0 ] . toString ( ) ) . toBe ( "https://auth.example.com/.well-known/oauth-authorization-server/path/name " ) ;
1824
+ // Second call should be to AS metadata with the path from authorization server
1825
+ expect ( calls [ 1 ] [ 0 ] . toString ( ) ) . toBe ( "https://auth.example.com/.well-known/oauth-authorization-server/oauth " ) ;
1826
1826
} ) ;
1827
1827
} ) ;
1828
1828
Original file line number Diff line number Diff line change @@ -606,7 +606,7 @@ export async function discoverOAuthMetadata(
606
606
protocolVersion ??= LATEST_PROTOCOL_VERSION ;
607
607
608
608
const response = await discoverMetadataWithFallback (
609
- issuer ,
609
+ authorizationServerUrl ,
610
610
'oauth-authorization-server' ,
611
611
{
612
612
protocolVersion,
You can’t perform that action at this time.
0 commit comments