(fixture: EnterpriseFixture)
| 105 | * restatement would pass even if the production schema silently dropped |
| 106 | * `authorization_grant_profiles_supported` — the field this whole gate reads. */ |
| 107 | const resourceMetadata = (fixture: EnterpriseFixture) => |
| 108 | Effect.gen(function* () { |
| 109 | const response = yield* Effect.promise(() => |
| 110 | // oxlint-disable-next-line executor/no-raw-fetch -- test boundary: reads the fixture's metadata document exactly as the connect path's discovery does |
| 111 | globalThis.fetch(`${fixture.resource.issuerUrl}/.well-known/oauth-authorization-server`), |
| 112 | ); |
| 113 | return yield* decodeMetadata(yield* Effect.promise((): Promise<unknown> => response.json())); |
| 114 | }); |
| 115 | |
| 116 | describe("enterprise-managed authorization: the ID-JAG chain", () => { |
| 117 | it.effect("mints an MCP access token from an enterprise identity assertion", () => |
no test coverage detected