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

Function authenticate

packages/core/api/src/server/executor-app.ts:424–427  ·  view source on GitHub ↗
(
    request: Request,
  )

Source from the content-addressed store, hash-verified

422 // the tag is resolved in the request fiber. Both fail the shared
423 // `Unauthorized | NoOrganization | Unavailable`.
424 const authenticate = (
425 request: Request,
426 ): Effect.Effect<ResolvedPrincipal, IdentityFailure, IdentityProvider> =>
427 Effect.flatMap(IdentityProvider.asEffect(), (provider) => provider.authenticate(request));
428
429 // The per-request layer combined into the middleware: cloud's `requestScoped`
430 // (the postgres socket) with `providers.identity` PROVIDE-MERGEd over it, so the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected