[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:
parent
78d6bec42a
commit
69f02a4557
1 changed files with 1020 additions and 33 deletions
13
src/scenarios/client/auth/basic-dcr.test.ts
Normal file
13
src/scenarios/client/auth/basic-dcr.test.ts
Normal 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');
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue