Build a complete authentication portal route
Creates a Caddy route that serves the authentication portal on specified hosts.
Route options
Complete Caddy route configuration
import { buildAuthenticatorRoute } from "@.../caddy-api-client/plugins/caddy-security";const route = buildAuthenticatorRoute({ hosts: ["auth.example.com"], portalName: "myportal", routeId: "auth-portal",});await client.addRoute("https_server", route); Copy
import { buildAuthenticatorRoute } from "@.../caddy-api-client/plugins/caddy-security";const route = buildAuthenticatorRoute({ hosts: ["auth.example.com"], portalName: "myportal", routeId: "auth-portal",});await client.addRoute("https_server", route);
Build a complete authentication portal route
Creates a Caddy route that serves the authentication portal on specified hosts.