Theia API Documentation v1.73.0
    Preparing search index...

    Electron-only RFC 8252 loopback callback server, bound to 127.0.0.1 on a fixed port and separate from the main backend, so it sits outside the security-token cookie middleware that would otherwise 403 the cookie-less OAuth redirect. One server multiplexes all flows and frontends through the shared MCPOAuthCallbackResponder (keyed by state), started lazily on first use and closed on shutdown.

    Implements

    Index

    Constructors

    Properties

    server: undefined | Server<typeof IncomingMessage, typeof ServerResponse>
    startPromise: undefined | Promise<number>

    Methods

    • Called when the backend application shuts down.

      When shutdown is initiated via SIGINT/SIGTERM, contributions are dispatched in parallel and any returned promise is awaited up to SHUTDOWN_TIMEOUT_MS milliseconds while injected services from the root container are still resolvable.

      On synchronous-exit fallback paths (uncaught exceptions, server bind failures, or normal process exit), the hook is invoked synchronously and any returned promise is discarded. Implementations should be resilient to either path.

      Contributions must be independent of one another during stop because they are dispatched in parallel.

      Returns void