( orgAuth: Layer.Layer<McpOrganizationAuth>, auth: Layer.Layer<McpAuth> = stubAuth, )
| 82 | }> {} |
| 83 | |
| 84 | const authenticateWith = ( |
| 85 | orgAuth: Layer.Layer<McpOrganizationAuth>, |
| 86 | auth: Layer.Layer<McpAuth> = stubAuth, |
| 87 | ) => |
| 88 | Effect.gen(function* () { |
| 89 | const provider = yield* McpAuthProvider; |
| 90 | return yield* provider.authenticate(request()); |
| 91 | }).pipe( |
| 92 | Effect.provide(cloudMcpAuthProviderLayer.pipe(Layer.provide(Layer.mergeAll(auth, orgAuth)))), |
| 93 | ); |
| 94 | |
| 95 | describe("cloud MCP org-authorization classification", () => { |
| 96 | it.effect("WorkOS 5xx -> Unavailable (retryable 503, session preserved)", () => |
no test coverage detected