@accelerated-software-development/caddy-api-client - v0.4.3
    Preparing search index...

    Function buildAuthenticatorHandler

    • Build an authenticator portal handler

      Creates a caddy-security authenticator handler that serves the login portal and handles credential validation.

      Parameters

      Returns { handler: "authenticator"; portal_name?: string; route_matcher?: string }

      Validated authenticator handler configuration

      import { buildAuthenticatorHandler } from "@.../caddy-api-client/plugins/caddy-security";

      const handler = buildAuthenticatorHandler({
      portalName: "myportal",
      });

      // Use in a route
      const route: CaddyRoute = {
      match: [{ host: ["auth.example.com"] }],
      handle: [handler],
      terminal: true,
      };