Skip to content

Commit b0b0eaf

Browse files
committed
add comment about www-authenticate
1 parent bb19f13 commit b0b0eaf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/scenarios/client/auth/basic-metadata-var1.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ export class AuthBasicMetadataVar1Scenario implements Scenario {
2929
() => this.baseUrl,
3030
() => this.authBaseUrl,
3131
{
32+
// TODO: this will put this path in the WWW-Authenticate header
33+
// but RFC 9728 states that in that case, the resource in the PRM
34+
// must match the URL used to make the request to the resource server.
35+
// We'll need to establish an opinion on whether that means the
36+
// URL for the metadata fetch, or the URL for the MCP endpoint,
37+
// or more generally what are the valid scenarios / combos.
3238
prmPath: '/.well-known/oauth-protected-resource'
3339
}
3440
);

0 commit comments

Comments
 (0)