[scenario] OAuth basic & PRM variation (#11)

* readme for auth tests

* wip prm test

* add example helper for local oauth w/o browser

* working through dangling timeout issue

* add better test function

* pretty printing

* add mcp method

* some more logging tweaks

* refactor logger into 1 class

* use common request logger

* fix base scenario

* some renaming

* refactor into helpers

* refactor to support second test

* rm readme

* add comment about www-authenticate
This commit is contained in:
Paul Carleton 2025-11-10 11:51:30 +00:00 • committed by GitHub
commit 69f02a4557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,13 @@
import { describe, test } from '@jest/globals';
import { runClientAgainstScenario } from './helpers/testClient.js';
import path from 'path';
describe('PRM Path-Based Discovery', () => {
test('client discovers PRM at path-based location before root', async () => {
const clientPath = path.join(
process.cwd(),
'examples/clients/typescript/auth-test.ts'
);
await runClientAgainstScenario(clientPath, 'auth/basic-dcr');
});
});