MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resourceMetadata

Function resourceMetadata

packages/core/sdk/src/oauth-ema.test.ts:107–114  ·  view source on GitHub ↗
(fixture: EnterpriseFixture)

Source from the content-addressed store, hash-verified

105 * restatement would pass even if the production schema silently dropped
106 * `authorization_grant_profiles_supported` — the field this whole gate reads. */
107const 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
116describe("enterprise-managed authorization: the ID-JAG chain", () => {
117 it.effect("mints an MCP access token from an enterprise identity assertion", () =>

Callers 1

oauth-ema.test.tsFile · 0.85

Calls 2

fetchMethod · 0.65
jsonMethod · 0.65

Tested by

no test coverage detected