Build an authenticator portal handler
Creates a caddy-security authenticator handler that serves the login portal and handles credential validation.
Handler options
Validated authenticator handler configuration
import { buildAuthenticatorHandler } from "@.../caddy-api-client/plugins/caddy-security";const handler = buildAuthenticatorHandler({ portalName: "myportal",});// Use in a routeconst route: CaddyRoute = { match: [{ host: ["auth.example.com"] }], handle: [handler], terminal: true,}; Copy
import { buildAuthenticatorHandler } from "@.../caddy-api-client/plugins/caddy-security";const handler = buildAuthenticatorHandler({ portalName: "myportal",});// Use in a routeconst route: CaddyRoute = { match: [{ host: ["auth.example.com"] }], handle: [handler], terminal: true,};
Build an authenticator portal handler
Creates a caddy-security authenticator handler that serves the login portal and handles credential validation.